diff options
| author | Mary <me@thog.eu> | 2020-09-06 21:54:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-06 16:54:33 -0300 |
| commit | 6aef27166101a0f733f9bfdfeb268fdc45048550 (patch) | |
| tree | 25530079b1520ad2d474c54766af1d449c9e9c60 /Ryujinx.Audio.Renderer/Server/CommandGenerator.cs | |
| parent | e7d09a8080f6a99b099f2b36f8a26a0c6a89cef7 (diff) | |
Amadeus: Fix multi-channel PCM sources on REV8 (#1536)
This add a missing offset on the output buffer of the DataSourceVersion2Command.
This fix music only playing on the left channel on Fairy Tail, Family Mysteries: Poisonous Promises, SEGA AGES Sonic the Hedgehog 2 and probably more.
Diffstat (limited to 'Ryujinx.Audio.Renderer/Server/CommandGenerator.cs')
| -rw-r--r-- | Ryujinx.Audio.Renderer/Server/CommandGenerator.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Ryujinx.Audio.Renderer/Server/CommandGenerator.cs b/Ryujinx.Audio.Renderer/Server/CommandGenerator.cs index 41f1c334..00fddefa 100644 --- a/Ryujinx.Audio.Renderer/Server/CommandGenerator.cs +++ b/Ryujinx.Audio.Renderer/Server/CommandGenerator.cs @@ -107,6 +107,8 @@ namespace Ryujinx.Audio.Renderer.Server if (!voiceState.WasPlaying) { + Debug.Assert(voiceState.SampleFormat != SampleFormat.Adpcm || channelIndex == 0); + if (_rendererContext.BehaviourContext.IsWaveBufferVersion2Supported()) { _commandBuffer.GenerateDataSourceVersion2(ref voiceState, |
