diff options
-rw-r--r-- | scumm/sound.cpp | 9 | ||||
-rw-r--r-- | scumm/sound.h | 1 |
2 files changed, 1 insertions, 9 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 231d89a045..789b3964a9 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -887,7 +887,7 @@ void Sound::startSfxSound(File *file, int file_size, PlayingSoundHandle *handle) error("startSfxSound: cannot read %d bytes", size); } - playSfxSound(data, size, rate, true, handle); + _scumm->_mixer->playRaw(handle, data, size, rate, SoundMixer::FLAG_AUTOFREE | SoundMixer::FLAG_UNSIGNED); } File *Sound::openSfxFile() { @@ -968,13 +968,6 @@ bool Sound::isSfxFinished() const { return !_scumm->_mixer->hasActiveSFXChannel(); } -void Sound::playSfxSound(void *sound, uint32 size, uint rate, bool isUnsigned, PlayingSoundHandle *handle) { - byte flags = SoundMixer::FLAG_AUTOFREE; - if (isUnsigned) - flags |= SoundMixer::FLAG_UNSIGNED; - _scumm->_mixer->playRaw(handle, sound, size, rate, flags); -} - // We use a real timer in an attempt to get better sync with CD tracks. This is // necessary for games like Loom CD. diff --git a/scumm/sound.h b/scumm/sound.h index 263208c304..1ac2d2c219 100644 --- a/scumm/sound.h +++ b/scumm/sound.h @@ -93,7 +93,6 @@ protected: File *openSfxFile(); void startSfxSound(File *file, int file_size, PlayingSoundHandle *handle); bool isSfxFinished() const; - void playSfxSound(void *sound, uint32 size, uint rate, bool isUnsigned, PlayingSoundHandle *handle); }; } // End of namespace Scumm |