diff options
author | Paweł Kołodziejski | 2004-04-24 20:02:17 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2004-04-24 20:02:17 +0000 |
commit | be28bc0403251f4f13e6ef9db7f5ff17e16a4e87 (patch) | |
tree | de866dfe95867e453d7caf79c86daccd0f2016f5 /scumm | |
parent | 5241ae736841607af2e625503b22b5925ca6973e (diff) | |
download | scummvm-rg350-be28bc0403251f4f13e6ef9db7f5ff17e16a4e87.tar.gz scummvm-rg350-be28bc0403251f4f13e6ef9db7f5ff17e16a4e87.tar.bz2 scummvm-rg350-be28bc0403251f4f13e6ef9db7f5ff17e16a4e87.zip |
add check if track is meanwhile stoped
svn-id: r13617
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/imuse_digi/dimuse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/imuse_digi/dimuse.cpp b/scumm/imuse_digi/dimuse.cpp index 51db04cbf0..cee881727a 100644 --- a/scumm/imuse_digi/dimuse.cpp +++ b/scumm/imuse_digi/dimuse.cpp @@ -88,7 +88,7 @@ int IMuseDigital::pullProcCallback(void *refCon, CustomProcInputStream *stream, int IMuseDigital::pullProc(CustomProcInputStream *stream, byte *mixerBuffer, int pullSize) { Common::StackLock lock(_mutex, "IMuseDigital::pullProc()"); for (int l = 0; l < MAX_DIGITAL_TRACKS + MAX_DIGITAL_FADETRACKS; l++) { - if (_track[l]->stream == stream) { + if ((_track[l]->used) && (_track[l]->stream == stream)) { _vm->_mixer->setChannelVolume(_track[l]->handle, _track[l]->mixerVol); _vm->_mixer->setChannelBalance(_track[l]->handle, _track[l]->mixerPan); int32 mixer_size = pullSize; |