aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-12-23 00:17:29 +0000
committerMax Horn2003-12-23 00:17:29 +0000
commit4abee143106cf5732e16e0b57f2474a5174bf27c (patch)
tree4158c90555a519db9af9f393fd5a35b608f30e77
parent47d744428b79a7f88710c35cbf4e74c2040b6657 (diff)
downloadscummvm-rg350-4abee143106cf5732e16e0b57f2474a5174bf27c.tar.gz
scummvm-rg350-4abee143106cf5732e16e0b57f2474a5174bf27c.tar.bz2
scummvm-rg350-4abee143106cf5732e16e0b57f2474a5174bf27c.zip
cleanup
svn-id: r11865
-rw-r--r--scumm/sound.cpp9
-rw-r--r--scumm/sound.h1
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