aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio/Renderer/Server/CommandGenerator.cs
diff options
context:
space:
mode:
authorMary <mary@mary.zone>2022-02-16 21:38:45 +0100
committerGitHub <noreply@github.com>2022-02-16 21:38:45 +0100
commitab5d77c0c4925955180dc51e9f289187ce6f2901 (patch)
tree55e3dc38d2a234a43b76fda6fb03e5eb83b97829 /Ryujinx.Audio/Renderer/Server/CommandGenerator.cs
parent7bfb5f79b8a7447105df85ca405d915a124d7ca1 (diff)
amadeus: Fix limiter correctness (#3126)1.1.30
This fixes missing audio on Nintendo Switch Sports Online Play Test.
Diffstat (limited to 'Ryujinx.Audio/Renderer/Server/CommandGenerator.cs')
-rw-r--r--Ryujinx.Audio/Renderer/Server/CommandGenerator.cs11
1 files changed, 10 insertions, 1 deletions
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<EffectResultState> dspResultState = _effectContext.GetDspStateMemory(effectId);
+ Memory<EffectResultState> dspResultState;
+
+ if (effect.Parameter.StatisticsEnabled)
+ {
+ dspResultState = _effectContext.GetDspStateMemory(effectId);
+ }
+ else
+ {
+ dspResultState = Memory<EffectResultState>.Empty;
+ }
_commandBuffer.GenerateLimiterEffectVersion2(bufferOffset, effect.Parameter, effect.State, dspResultState, effect.IsEnabled, workBuffer, nodeId);
}