mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 17:29:39 +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;
|
oggMode = true;
|
||||||
}
|
}
|
||||||
if (!soundHandle->compressedStream) {
|
if (!soundHandle->compressedStream) {
|
||||||
|
#ifdef USE_VORBIS
|
||||||
if (oggMode)
|
if (oggMode)
|
||||||
soundHandle->compressedStream = makeVorbisStream(cmpFile, len);
|
soundHandle->compressedStream = makeVorbisStream(cmpFile, len);
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
|
#ifdef USE_MAD
|
||||||
soundHandle->compressedStream = makeMP3Stream(cmpFile, len);
|
soundHandle->compressedStream = makeMP3Stream(cmpFile, len);
|
||||||
|
#endif
|
||||||
assert(soundHandle->compressedStream);
|
assert(soundHandle->compressedStream);
|
||||||
assert(soundHandle->compressedStream->getRate() == 22050);
|
assert(soundHandle->compressedStream->getRate() == 22050);
|
||||||
assert(soundHandle->compressedStream->isStereo());
|
assert(soundHandle->compressedStream->isStereo());
|
||||||
|
Loading…
Reference in New Issue
Block a user