Permalink
Browse files

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.
  • Loading branch information...
lightningterror committed Jan 9, 2019
1 parent ea38e2e commit fb5471f34f4fbf91d39763fac37d190bda218875
Showing with 3 additions and 3 deletions.
  1. +0 −1 plugins/spu2-x/src/CMakeLists.txt
  2. +3 −2 plugins/spu2-x/src/DplIIdecoder.cpp
@@ -61,7 +61,6 @@ set(spu2xHeaders
Debug.h
defs.h
Dma.h
DPLII.h
Global.h
Lowpass.h
Mixer.h
@@ -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;

0 comments on commit fb5471f

Please sign in to comment.