From 7a971edb577c64b178ef7a82de3e9e34ba74755c Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 8 Apr 2024 20:26:47 -0300 Subject: [PATCH] Pin audio renderer update output buffers (#6633) --- src/Ryujinx.Horizon/Sdk/Audio/Detail/AudioRenderer.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Ryujinx.Horizon/Sdk/Audio/Detail/AudioRenderer.cs b/src/Ryujinx.Horizon/Sdk/Audio/Detail/AudioRenderer.cs index 54de0721..4d446bba 100644 --- a/src/Ryujinx.Horizon/Sdk/Audio/Detail/AudioRenderer.cs +++ b/src/Ryujinx.Horizon/Sdk/Audio/Detail/AudioRenderer.cs @@ -61,6 +61,9 @@ namespace Ryujinx.Horizon.Sdk.Audio.Detail [Buffer(HipcBufferFlags.Out | HipcBufferFlags.MapAlias)] Memory performanceOutput, [Buffer(HipcBufferFlags.In | HipcBufferFlags.MapAlias)] ReadOnlySequence input) { + using MemoryHandle outputHandle = output.Pin(); + using MemoryHandle performanceOutputHandle = performanceOutput.Pin(); + Result result = new Result((int)_renderSystem.Update(output, performanceOutput, input)); return result;