From ad7cc6cef492aced6d695b945a93f639a3815756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82odziejski?= Date: Fri, 28 Jan 2005 11:43:25 +0000 Subject: [PATCH] add checks for mad and vorbis define svn-id: r16659 --- scumm/imuse_digi/dimuse_sndmgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scumm/imuse_digi/dimuse_sndmgr.cpp b/scumm/imuse_digi/dimuse_sndmgr.cpp index 9acc04f3b7c..5374150a506 100644 --- a/scumm/imuse_digi/dimuse_sndmgr.cpp +++ b/scumm/imuse_digi/dimuse_sndmgr.cpp @@ -578,10 +578,14 @@ int32 ImuseDigiSndMgr::getDataFromRegion(soundStruct *soundHandle, int region, b oggMode = true; } if (!soundHandle->compressedStream) { +#ifdef USE_VORBIS if (oggMode) soundHandle->compressedStream = makeVorbisStream(cmpFile, len); else +#endif +#ifdef USE_MAD soundHandle->compressedStream = makeMP3Stream(cmpFile, len); +#endif assert(soundHandle->compressedStream); assert(soundHandle->compressedStream->getRate() == 22050); assert(soundHandle->compressedStream->isStereo());