mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
GROOVIE: check for USE_MAD for MP3
The groovie engine is unconditionally trying to acess the `Audio::makeMP3Stream` method, which won't exist if ScummVM is being compiled without MAD. Other consumers use this `#ifdef` to determine if they should try to call it, so I've made the same change here.
This commit is contained in:
committed by
Filippos Karapetis
parent
28dcd89782
commit
562c0f7c8c
@@ -808,8 +808,10 @@ bool MusicPlayerTlc::load(uint32 fileref, bool loop) {
|
||||
if (_file->isOpen()) {
|
||||
if (filename.hasSuffix(".m4a"))
|
||||
seekStream = Audio::makeQuickTimeStream(_file, DisposeAfterUse::NO);
|
||||
#ifdef USE_MAD
|
||||
else
|
||||
seekStream = Audio::makeMP3Stream(_file, DisposeAfterUse::NO);
|
||||
#endif
|
||||
} else {
|
||||
delete _file;
|
||||
_file = NULL;
|
||||
|
||||
Reference in New Issue
Block a user