add checks for mad and vorbis define

svn-id: r16659
This commit is contained in:
Paweł Kołodziejski 2005-01-28 11:43:25 +00:00
parent e891988298
commit ad7cc6cef4

View File

@ -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());