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/Dsp/Command/DataSourceVersion2Command.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/Dsp/Command/DataSourceVersion2Command.cs')
-rw-r--r-- | Ryujinx.Audio.Renderer/Dsp/Command/DataSourceVersion2Command.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Audio.Renderer/Dsp/Command/DataSourceVersion2Command.cs b/Ryujinx.Audio.Renderer/Dsp/Command/DataSourceVersion2Command.cs index 7b68ff5d..e60a126f 100644 --- a/Ryujinx.Audio.Renderer/Dsp/Command/DataSourceVersion2Command.cs +++ b/Ryujinx.Audio.Renderer/Dsp/Command/DataSourceVersion2Command.cs @@ -63,7 +63,7 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command SrcQuality = serverState.SrcQuality; CommandType = GetCommandTypeBySampleFormat(SampleFormat); - OutputBufferIndex = outputBufferIndex; + OutputBufferIndex = (ushort)(channelIndex + outputBufferIndex); SampleRate = serverState.SampleRate; Pitch = serverState.Pitch; |