mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-20 17:51:13 +02:00
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:
@@ -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++)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -323,6 +323,7 @@ namespace Ryujinx.Input.HLE
|
|||||||
|
|
||||||
_device.TamperMachine.UpdateInput(hleInputStates);
|
_device.TamperMachine.UpdateInput(hleInputStates);
|
||||||
|
|
||||||
|
hleMotionStates.Clear();
|
||||||
_hleMotionStatesPool.Release(hleMotionStates);
|
_hleMotionStatesPool.Release(hleMotionStates);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user