diff options
author | Paweł Kołodziejski | 2008-01-14 14:48:35 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2008-01-14 14:48:35 +0000 |
commit | 5870bebd6d4bf659c4a405b3a0be895ff42f93b0 (patch) | |
tree | 0cfe96d7754950d084ce3c6d3649371d78e874ab /engines/scumm/imuse_digi/dimuse_track.cpp | |
parent | a6f8e5c89a41bf10b65251ed1ec97b36c99b7313 (diff) | |
download | scummvm-rg350-5870bebd6d4bf659c4a405b3a0be895ff42f93b0.tar.gz scummvm-rg350-5870bebd6d4bf659c4a405b3a0be895ff42f93b0.tar.bz2 scummvm-rg350-5870bebd6d4bf659c4a405b3a0be895ff42f93b0.zip |
fixed setting hookId for music, it doesn't worked before
svn-id: r30481
Diffstat (limited to 'engines/scumm/imuse_digi/dimuse_track.cpp')
-rw-r--r-- | engines/scumm/imuse_digi/dimuse_track.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/scumm/imuse_digi/dimuse_track.cpp b/engines/scumm/imuse_digi/dimuse_track.cpp index b2037d83fc..7421244662 100644 --- a/engines/scumm/imuse_digi/dimuse_track.cpp +++ b/engines/scumm/imuse_digi/dimuse_track.cpp @@ -280,6 +280,18 @@ void IMuseDigital::fadeOutMusic(int fadeDelay) { } } +void IMuseDigital::setHookIdForMusic(int hookId) { + Common::StackLock lock(_mutex, "IMuseDigital::setHookIdForMusic()"); + debug(5, "IMuseDigital::setHookIdForMusic"); + + for (int l = 0; l < MAX_DIGITAL_TRACKS; l++) { + Track *track = _track[l]; + if (track->used && !track->toBeRemoved && (track->volGroupId == IMUSE_VOLGRP_MUSIC)) { + track->curHookId = hookId; + } + } +} + IMuseDigital::Track *IMuseDigital::cloneToFadeOutTrack(Track *track, int fadeDelay) { assert(track); Track *fadeTrack = 0; |