mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 08:39:45 +00:00
ULTIMA4: fix compilation w/o MP3 support
This commit is contained in:
parent
08b4639cbb
commit
488adf7fe9
@ -234,10 +234,12 @@ bool Music::load_sys(const Common::String &pathName) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Common::SeekableReadStream *s = f.readStream(f.size());
|
||||
if (pathName.hasSuffixIgnoreCase(".mp3"))
|
||||
if (pathName.hasSuffixIgnoreCase(".mp3")) {
|
||||
#ifdef USE_MAD
|
||||
Common::SeekableReadStream *s = f.readStream(f.size());
|
||||
_playing = Audio::makeMP3Stream(s, DisposeAfterUse::YES);
|
||||
else if (pathName.hasSuffixIgnoreCase(".it"))
|
||||
#endif
|
||||
} else if (pathName.hasSuffixIgnoreCase(".it"))
|
||||
_playing = nullptr;
|
||||
else
|
||||
error("Unknown sound file");
|
||||
|
Loading…
x
Reference in New Issue
Block a user