From 562c0f7c8cd7e29ccdcd2eaaa8469edd9fb99a0b Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 13 Oct 2021 12:52:28 -0700 Subject: [PATCH] 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. --- engines/groovie/music.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/groovie/music.cpp b/engines/groovie/music.cpp index a7add7d57b0..d9e57864afd 100644 --- a/engines/groovie/music.cpp +++ b/engines/groovie/music.cpp @@ -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;