From 9142aca48ff09ed32954eceb3456a255d61945b7 Mon Sep 17 00:00:00 2001 From: Thomas Guillemard Date: Fri, 11 Oct 2019 17:22:24 +0200 Subject: Fix hwopus DecodeInterleaved implementation (#786) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix hwopus DecodeInterleaved implementation Also implement new variants of this api. This should fix #763 * Sample rate shouldn't be hardcoded This fix issues while opening Pokémon Let's Go pause menu. * Apply Ac_K's suggestion about EndianSwap * Address gdkchan's comment * Address Ac_k's comment --- Ryujinx.HLE/Utilities/EndianSwap.cs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 Ryujinx.HLE/Utilities/EndianSwap.cs (limited to 'Ryujinx.HLE/Utilities') diff --git a/Ryujinx.HLE/Utilities/EndianSwap.cs b/Ryujinx.HLE/Utilities/EndianSwap.cs deleted file mode 100644 index df08191a..00000000 --- a/Ryujinx.HLE/Utilities/EndianSwap.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace Ryujinx.HLE.Utilities -{ - static class EndianSwap - { - public static ushort Swap16(ushort value) => (ushort)(((value >> 8) & 0xff) | (value << 8)); - - public static int Swap32(int value) - { - uint uintVal = (uint)value; - - return (int)(((uintVal >> 24) & 0x000000ff) | - ((uintVal >> 8) & 0x0000ff00) | - ((uintVal << 8) & 0x00ff0000) | - ((uintVal << 24) & 0xff000000)); - } - } -} -- cgit v1.2.3