aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/imuse_digi/dimuse_track.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2008-01-20 19:30:48 +0000
committerPaweł Kołodziejski2008-01-20 19:30:48 +0000
commitec66f6765c40bdc0a62be5a5755886bd38738ba8 (patch)
treeaebae23fee4b747c571f3cb03586a7e86b510c27 /engines/scumm/imuse_digi/dimuse_track.cpp
parente8374f6775cae3cc9a4b2f0613312bee4bf57d8d (diff)
downloadscummvm-rg350-ec66f6765c40bdc0a62be5a5755886bd38738ba8.tar.gz
scummvm-rg350-ec66f6765c40bdc0a62be5a5755886bd38738ba8.tar.bz2
scummvm-rg350-ec66f6765c40bdc0a62be5a5755886bd38738ba8.zip
added experimental hack to code to prevent the same start music again if old one didn't have chance finish. it's fix bug #1861704, it may fix other similiar things when seq is to null. added few changes to debug logs.
svn-id: r30590
Diffstat (limited to 'engines/scumm/imuse_digi/dimuse_track.cpp')
-rw-r--r--engines/scumm/imuse_digi/dimuse_track.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/engines/scumm/imuse_digi/dimuse_track.cpp b/engines/scumm/imuse_digi/dimuse_track.cpp
index 111f3acbde..05fa2eaddf 100644
--- a/engines/scumm/imuse_digi/dimuse_track.cpp
+++ b/engines/scumm/imuse_digi/dimuse_track.cpp
@@ -218,26 +218,13 @@ int IMuseDigital::getCurMusicSoundId() {
Track *track = _track[l];
if (track->used && !track->toBeRemoved && (track->volGroupId == IMUSE_VOLGRP_MUSIC)) {
soundId = track->soundId;
+ break;
}
}
return soundId;
}
-char *IMuseDigital::getCurMusicSoundName() {
- Common::StackLock lock(_mutex, "IMuseDigital::getCurMusicSoundName()");
- char *soundName = NULL;
-
- for (int l = 0; l < MAX_DIGITAL_TRACKS; l++) {
- Track *track = _track[l];
- if (track->used && !track->toBeRemoved && (track->volGroupId == IMUSE_VOLGRP_MUSIC)) {
- soundName = track->soundName;
- }
- }
-
- return soundName;
-}
-
void IMuseDigital::setPan(int soundId, int pan) {
Common::StackLock lock(_mutex, "IMuseDigital::setPan()");
debug(5, "IMuseDigital::setPan(%d, %d)", soundId, pan);