From fa31b1c2ca115d56756cca023a20e1fdedcf1ec6 Mon Sep 17 00:00:00 2001 From: jduncanator Date: Wed, 5 Sep 2018 16:53:38 +1000 Subject: [PATCH] Audio: Fix typo in Stereo write callback --- Ryujinx.Audio/Renderers/SoundIo/SoundIoAudioTrack.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ryujinx.Audio/Renderers/SoundIo/SoundIoAudioTrack.cs b/Ryujinx.Audio/Renderers/SoundIo/SoundIoAudioTrack.cs index 427f3dcb94..35e1d24a60 100644 --- a/Ryujinx.Audio/Renderers/SoundIo/SoundIoAudioTrack.cs +++ b/Ryujinx.Audio/Renderers/SoundIo/SoundIoAudioTrack.cs @@ -188,7 +188,7 @@ namespace Ryujinx.Audio.SoundIo fixed (byte* srcptr = samples) { - if (bytesPerSample == 11) + if (bytesPerSample == 1) { for (var frame = 0; frame < frameCount; frame++) { @@ -202,7 +202,7 @@ namespace Ryujinx.Audio.SoundIo area2.Pointer += area2.Step; } } - else if (bytesPerSample == 12) + else if (bytesPerSample == 2) { for (var frame = 0; frame < frameCount; frame++) { @@ -216,7 +216,7 @@ namespace Ryujinx.Audio.SoundIo area2.Pointer += area2.Step; } } - else if (bytesPerSample == 14) + else if (bytesPerSample == 4) { for (var frame = 0; frame < frameCount; frame++) {