diff options
author | Max Horn | 2005-03-12 18:56:09 +0000 |
---|---|---|
committer | Max Horn | 2005-03-12 18:56:09 +0000 |
commit | 7cd2cb2b1700b85d48aed8898b08b49b9b46ebf8 (patch) | |
tree | 7849605aa45912d9cbe65dbb68b2b450bd32b023 /queen | |
parent | 8de216f3aec1dcee16fc0ab9974da4087bac5252 (diff) | |
download | scummvm-rg350-7cd2cb2b1700b85d48aed8898b08b49b9b46ebf8.tar.gz scummvm-rg350-7cd2cb2b1700b85d48aed8898b08b49b9b46ebf8.tar.bz2 scummvm-rg350-7cd2cb2b1700b85d48aed8898b08b49b9b46ebf8.zip |
PlayingSoundHandle -> SoundHandle; also, turned the handle activity check into a mixer method
svn-id: r17106
Diffstat (limited to 'queen')
-rw-r--r-- | queen/sound.cpp | 4 | ||||
-rw-r--r-- | queen/sound.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/queen/sound.cpp b/queen/sound.cpp index a93650ea7f..f982ce9d6c 100644 --- a/queen/sound.cpp +++ b/queen/sound.cpp @@ -83,10 +83,10 @@ Sound *Sound::giveSound(SoundMixer *mixer, QueenEngine *vm, uint8 compression) { void Sound::waitFinished(bool isSpeech) { if (isSpeech) - while (_speechHandle.isActive()) + while (_mixer->isSoundHandleActive(_speechHandle)) _vm->input()->delay(10); else - while (_sfxHandle.isActive()) + while (_mixer->isSoundHandleActive(_sfxHandle)) _vm->input()->delay(10); } diff --git a/queen/sound.h b/queen/sound.h index 1311848310..6aaee1d2bf 100644 --- a/queen/sound.h +++ b/queen/sound.h @@ -74,8 +74,8 @@ public: void musicToggle(bool val) { _musicToggle = val; } void toggleMusic() { _musicToggle ^= true; } - bool isSpeechActive() const { return _speechHandle.isActive(); } - bool isSfxActive() const { return _sfxHandle.isActive(); } + bool isSpeechActive() const { return _mixer->isSoundHandleActive(_speechHandle); } + bool isSfxActive() const { return _mixer->isSoundHandleActive(_sfxHandle); } bool speechSfxExists() const { return _speechSfxExists; } @@ -112,8 +112,8 @@ protected: bool _speechSfxExists; int16 _lastOverride; - PlayingSoundHandle _sfxHandle; - PlayingSoundHandle _speechHandle; + SoundHandle _sfxHandle; + SoundHandle _speechHandle; }; class SilentSound : public Sound { |