aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs
diff options
context:
space:
mode:
authorMary <mary@mary.zone>2023-05-11 20:14:02 +0200
committerGitHub <noreply@github.com>2023-05-11 20:14:02 +0200
commit40d47b7aa235b464974480d09875eef0377bb261 (patch)
tree568c6092d24232f55969405e4e593be215838e6b /src/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs
parentec0bb74968de92230dd026faa35e5f8bd975ec35 (diff)
amadeus: Fix wrong channel mapping check and an old typo (#4888)
* amadeus: Fix wrong channel mapping check This was always going to happens, as a result quadratic would break and move index after the channel count point, effectively breaking input/output indices. * amadeus: Fix reverb 3d early delay wrong output index
Diffstat (limited to 'src/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs')
-rw-r--r--src/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs b/src/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs
index cb5678c7..6dc76659 100644
--- a/src/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs
+++ b/src/Ryujinx.Audio/Renderer/Dsp/Command/DelayCommand.cs
@@ -49,8 +49,8 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
OutputBufferIndices[i] = (ushort)(bufferOffset + Parameter.Output[i]);
}
- DataSourceHelper.RemapLegacyChannelEffectMappingToChannelResourceMapping(newEffectChannelMappingSupported, InputBufferIndices);
- DataSourceHelper.RemapLegacyChannelEffectMappingToChannelResourceMapping(newEffectChannelMappingSupported, OutputBufferIndices);
+ DataSourceHelper.RemapLegacyChannelEffectMappingToChannelResourceMapping(newEffectChannelMappingSupported, InputBufferIndices, Parameter.ChannelCount);
+ DataSourceHelper.RemapLegacyChannelEffectMappingToChannelResourceMapping(newEffectChannelMappingSupported, OutputBufferIndices, Parameter.ChannelCount);
}
[MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)]