From e7f2342ebaa0aa143db0c41ce841ed501b0260d5 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 10 Apr 2024 12:07:31 -0300 Subject: [PATCH] Fix input consumed by audio renderer SplitterState.Update (#6640) * Fix input consumed by audio renderer SplitterState.Update * Use sizeof(int) to make clear what the value is --- src/Ryujinx.Audio/Renderer/Server/Splitter/SplitterState.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ryujinx.Audio/Renderer/Server/Splitter/SplitterState.cs b/src/Ryujinx.Audio/Renderer/Server/Splitter/SplitterState.cs index 109c81b2..944f092d 100644 --- a/src/Ryujinx.Audio/Renderer/Server/Splitter/SplitterState.cs +++ b/src/Ryujinx.Audio/Renderer/Server/Splitter/SplitterState.cs @@ -159,6 +159,11 @@ namespace Ryujinx.Audio.Renderer.Server.Splitter } } + if (destinationCount < parameter.DestinationCount) + { + input.Advance((parameter.DestinationCount - destinationCount) * sizeof(int)); + } + Debug.Assert(parameter.Id == Id); if (parameter.Id == Id)