spu2-x: Added a define in to make it easy to disable the decoder code.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3186 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2010-06-09 10:38:14 +00:00
parent aa430319c0
commit 00404edfbc
1 changed files with 13 additions and 0 deletions

View File

@ -16,8 +16,13 @@
//Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// Commenting this will disable all the code in Decoder.cpp (which is the only code that uses liba52 in spu2-x.)
#define ENABLE_DECODER
#include "Global.h"
#ifdef ENABLE_DECODER
extern "C" {
#include "liba52/inttypes.h"
#include "liba52/a52.h"
@ -381,3 +386,11 @@ void spdif_get_samples(s32*samples)
}
}
}
#else
u32 spdif_init() { return 1; }
void spdif_update() {}
void spdif_shutdown() {}
void spdif_set51(u32 is_5_1_out) {}
#endif