mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 09:21:08 +00:00
add checks for mad and vorbis define
svn-id: r16659
This commit is contained in:
parent
e891988298
commit
ad7cc6cef4
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user