From fb5471f34f4fbf91d39763fac37d190bda218875 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Wed, 9 Jan 2019 08:22:54 +0100 Subject: [PATCH] spu2-x: Adjust some Dolby Pro Logic II code. Comment out unused variable sLogTable in DplIIdecoder.cpp. Remove DPLII.h from cmake list, it's unused so don't list it. Some people suggested to keep the source files even if they are unused so we can do that. Maybe someone will get the code to work properly. --- plugins/spu2-x/src/CMakeLists.txt | 1 - plugins/spu2-x/src/DplIIdecoder.cpp | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/spu2-x/src/CMakeLists.txt b/plugins/spu2-x/src/CMakeLists.txt index 498fcb52e9..e4c7141287 100644 --- a/plugins/spu2-x/src/CMakeLists.txt +++ b/plugins/spu2-x/src/CMakeLists.txt @@ -61,7 +61,6 @@ set(spu2xHeaders Debug.h defs.h Dma.h - DPLII.h Global.h Lowpass.h Mixer.h diff --git a/plugins/spu2-x/src/DplIIdecoder.cpp b/plugins/spu2-x/src/DplIIdecoder.cpp index 3a352f31e7..56261c85fb 100644 --- a/plugins/spu2-x/src/DplIIdecoder.cpp +++ b/plugins/spu2-x/src/DplIIdecoder.cpp @@ -20,7 +20,8 @@ #include "Global.h" -static const u8 sLogTable[256] = { +// FIXME Not yet used so let's comment it out. +/*static const u8 sLogTable[256] = { 0x00, 0x3C, 0x60, 0x78, 0x8C, 0x9C, 0xA8, 0xB4, 0xBE, 0xC8, 0xD0, 0xD8, 0xDE, 0xE4, 0xEA, 0xF0, 0xF6, 0xFA, 0xFE, 0x04, 0x08, 0x0C, 0x10, 0x14, 0x16, 0x1A, 0x1E, 0x20, 0x24, 0x26, 0x2A, 0x2C, 0x2E, 0x32, 0x34, 0x36, 0x38, 0x3A, 0x3E, 0x40, 0x42, 0x44, 0x46, 0x48, 0x4A, 0x4C, 0x4E, 0x50, @@ -37,7 +38,7 @@ static const u8 sLogTable[256] = { 0xCE, 0xCE, 0xD0, 0xD0, 0xD0, 0xD0, 0xD0, 0xD2, 0xD2, 0xD2, 0xD2, 0xD2, 0xD4, 0xD4, 0xD4, 0xD4, 0xD4, 0xD6, 0xD6, 0xD6, 0xD6, 0xD6, 0xD8, 0xD8, 0xD8, 0xD8, 0xD8, 0xD8, 0xDA, 0xDA, 0xDA, 0xDA, 0xDA, 0xDC, 0xDC, 0xDC, 0xDC, 0xDC, 0xDC, 0xDE, 0xDE, 0xDE, 0xDE, 0xDE, 0xDE, 0xE0, 0xE0, 0xE0, -}; +};*/ static float Gfl = 0, Gfr = 0; static float LMax = 0, RMax = 0;