diff options
author | Paweł Kołodziejski | 2004-01-14 16:46:19 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2004-01-14 16:46:19 +0000 |
commit | ee3c5122773aa6c14fbfefd160825a5b23af6cdb (patch) | |
tree | 6a787904624057910246e7d5a8ce4280fa975299 /scumm | |
parent | dd2262b1875e6c01222abea2252baa3a94677897 (diff) | |
download | scummvm-rg350-ee3c5122773aa6c14fbfefd160825a5b23af6cdb.tar.gz scummvm-rg350-ee3c5122773aa6c14fbfefd160825a5b23af6cdb.tar.bz2 scummvm-rg350-ee3c5122773aa6c14fbfefd160825a5b23af6cdb.zip |
fix - stop played song when new
hack - for completable comi song scene
svn-id: r12390
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/imuse_digi/dimuse.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scumm/imuse_digi/dimuse.cpp b/scumm/imuse_digi/dimuse.cpp index f0bb0b4049..b43c26b08d 100644 --- a/scumm/imuse_digi/dimuse.cpp +++ b/scumm/imuse_digi/dimuse.cpp @@ -296,8 +296,10 @@ void IMuseDigital::startSound(int soundId, const char *soundName, int soundType, _vm->_mixer->playInputStream(&_track[l].handle, _track[l].stream, true, _track[l].vol / 1000, _track[l].pan, -1); } - if ((_track[l].soundGroup == IMUSE_MUSIC) && (_vm->_gameId != GID_FT)) + if ((_track[l].soundGroup == IMUSE_MUSIC) && (_vm->_gameId != GID_FT)) { + stopMusic(); _curMusicSoundId = soundId; + } _track[l].locked = false; _track[l].used = true; @@ -636,7 +638,10 @@ int32 IMuseDigital::getPosInMs(int soundId) { int32 IMuseDigital::getCurMusicPosInMs() { debug(5, "IMuseDigital::getCurMusicPosInMs(%d)", _curMusicSoundId); - return getPosInMs(_curMusicSoundId); + +// return getPosInMs(_curMusicSoundId); +// hack for comi song scene to be completable + return 300000; } int32 IMuseDigital::getCurVoiceLipSyncWidth() { |