Просмотр исходного кода

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
gdkchan 2 лет назад
Родитель
Сommit
e7f2342eba
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      src/Ryujinx.Audio/Renderer/Server/Splitter/SplitterState.cs

+ 5 - 0
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)