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 /sword1/sound.cpp | |
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 'sword1/sound.cpp')
-rw-r--r-- | sword1/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sword1/sound.cpp b/sword1/sound.cpp index a55c476448..cde9e867dc 100644 --- a/sword1/sound.cpp +++ b/sword1/sound.cpp @@ -100,7 +100,7 @@ void Sound::engine(void) { if (_fxQueue[cnt2].delay == 0) playSample(&_fxQueue[cnt2]); } else { - if (!_fxQueue[cnt2].handle.isActive()) { // sound finished + if (!_mixer->isSoundHandleActive(_fxQueue[cnt2].handle)) { // sound finished _resMan->resClose(_fxList[_fxQueue[cnt2].id].sampleId); if (cnt2 != _endOfQueue-1) _fxQueue[cnt2] = _fxQueue[_endOfQueue - 1]; @@ -130,7 +130,7 @@ bool Sound::amISpeaking(void) { } bool Sound::speechFinished(void) { - return !_speechHandle.isActive(); + return !_mixer->isSoundHandleActive(_speechHandle); } void Sound::newScreen(uint32 screen) { |