From ab5d77c0c4925955180dc51e9f289187ce6f2901 Mon Sep 17 00:00:00 2001 From: Mary Date: Wed, 16 Feb 2022 21:38:45 +0100 Subject: amadeus: Fix limiter correctness (#3126) This fixes missing audio on Nintendo Switch Sports Online Play Test. --- Ryujinx.Audio/Renderer/Server/CommandGenerator.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Audio/Renderer/Server/CommandGenerator.cs') diff --git a/Ryujinx.Audio/Renderer/Server/CommandGenerator.cs b/Ryujinx.Audio/Renderer/Server/CommandGenerator.cs index 8e4ecd25..85c019c2 100644 --- a/Ryujinx.Audio/Renderer/Server/CommandGenerator.cs +++ b/Ryujinx.Audio/Renderer/Server/CommandGenerator.cs @@ -558,7 +558,16 @@ namespace Ryujinx.Audio.Renderer.Server if (_rendererContext.BehaviourContext.IsEffectInfoVersion2Supported()) { - Memory dspResultState = _effectContext.GetDspStateMemory(effectId); + Memory dspResultState; + + if (effect.Parameter.StatisticsEnabled) + { + dspResultState = _effectContext.GetDspStateMemory(effectId); + } + else + { + dspResultState = Memory.Empty; + } _commandBuffer.GenerateLimiterEffectVersion2(bufferOffset, effect.Parameter, effect.State, dspResultState, effect.IsEnabled, workBuffer, nodeId); } -- cgit v1.2.3-70-g09d2