Memory changes 3.1

Fixes audio bug causing static noise to play in certain games.

Fixes inputs being dropped after a certain amount of playtime.
This commit is contained in:
LotP
2025-11-11 16:05:45 -06:00
committed by KeatonTheBot
parent 17b7eadb91
commit a926a31133
2 changed files with 2 additions and 0 deletions
@@ -87,6 +87,7 @@ namespace Ryujinx.Audio.Renderer.Dsp.Command
} }
short[] outputBuffer = ArrayPool<short>.Shared.Rent((int)inputCount * SampleCount); short[] outputBuffer = ArrayPool<short>.Shared.Rent((int)inputCount * SampleCount);
Array.Fill(outputBuffer, (short)0, 0, (int)inputCount * SampleCount);
for (int i = 0; i < bufferCount; i++) for (int i = 0; i < bufferCount; i++)
{ {
+1
View File
@@ -323,6 +323,7 @@ namespace Ryujinx.Input.HLE
_device.TamperMachine.UpdateInput(hleInputStates); _device.TamperMachine.UpdateInput(hleInputStates);
hleMotionStates.Clear();
_hleMotionStatesPool.Release(hleMotionStates); _hleMotionStatesPool.Release(hleMotionStates);
} }
} }