diff options
Diffstat (limited to 'scumm/sound.cpp')
-rw-r--r-- | scumm/sound.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index ade7faf0ba..91f007e684 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -23,7 +23,7 @@ #include "stdafx.h" #include "scumm/actor.h" #include "scumm/imuse.h" -#include "scumm/imuse_digi.h" +#include "scumm/imuse_digi/dimuse.h" #include "scumm/scumm.h" #include "scumm/sound.h" @@ -126,11 +126,6 @@ void Sound::playSound(int soundID) { return; } - if (_scumm->_features & GF_DIGI_IMUSE) { - _scumm->_musicEngine->startSound(soundID); - return; - } - // Support for SFX in Monkey Island 1, Mac version // This is rather hackish right now, but works OK. SFX are not sounding // 100% correct, though, not sure right now what is causing this. @@ -815,7 +810,6 @@ void Sound::startSfxSound(File *file, int file_size, PlayingSoundHandle *handle, AudioStream *input; - if (file_size > 0) { if (_vorbis_mode) { #ifdef USE_VORBIS @@ -831,7 +825,8 @@ void Sound::startSfxSound(File *file, int file_size, PlayingSoundHandle *handle, } if (_scumm->_imuseDigital) { - _scumm->_imuseDigital->startSound(kTalkSoundID, 0, input); + _scumm->_imuseDigital->stopSound(kTalkSoundID); + _scumm->_imuseDigital->startVoice(kTalkSoundID, input); } else { _scumm->_mixer->playInputStream(handle, input, false, 255, 0, id); } |