diff options
author | Filippos Karapetis | 2014-03-28 22:00:12 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-03-28 22:00:12 +0200 |
commit | b8aca5c202012dd6121598f06aca6715cbd365ca (patch) | |
tree | 42dfbf36eb941c1c8ffc55c7f7630ba0e23ca5ee /engines/sci | |
parent | 6a519f7f40bbbb2e8887e69cef1ecd2b029d7490 (diff) | |
download | scummvm-rg350-b8aca5c202012dd6121598f06aca6715cbd365ca.tar.gz scummvm-rg350-b8aca5c202012dd6121598f06aca6715cbd365ca.tar.bz2 scummvm-rg350-b8aca5c202012dd6121598f06aca6715cbd365ca.zip |
SCI: Add missing USE_MAD check for commit 6a519f7f
This fixes compilation for platforms where libmad isn't present
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/sound/audio.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/sound/audio.cpp b/engines/sci/sound/audio.cpp index 228abba51e..8e35d6b055 100644 --- a/engines/sci/sound/audio.cpp +++ b/engines/sci/sound/audio.cpp @@ -79,6 +79,7 @@ void AudioPlayer::handleFanmadeSciAudio(reg_t sciAudioObject, SegManager *segMan Common::String command = segMan->getString(commandReg); if (command == "play" || command == "playx") { +#ifdef USE_MAD reg_t fileNameReg = readSelector(segMan, sciAudioObject, kernel->findSelector("fileName")); Common::String fileName = segMan->getString(fileNameReg); @@ -102,11 +103,13 @@ void AudioPlayer::handleFanmadeSciAudio(reg_t sciAudioObject, SegManager *segMan fileName.setChar('/', i); } sciAudio->open("sciAudio/" + fileName); + Audio::SeekableAudioStream *audioStream = Audio::makeMP3Stream(sciAudio, DisposeAfterUse::YES); // We only support one audio handle _mixer->playStream(soundType, &_audioHandle, Audio::makeLoopingAudioStream((Audio::RewindableAudioStream *)audioStream, loopCount)); +#endif } else if (command == "stop") { _mixer->stopHandle(_audioHandle); } else { |