diff options
author | Paweł Kołodziejski | 2004-04-11 14:56:11 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2004-04-11 14:56:11 +0000 |
commit | 3a04ee24cd52ffaaf6e2cc4e37e1125c8b3ec9b1 (patch) | |
tree | 73f98f467fda457ecd4c95cdf19676bb0a97a090 | |
parent | def44acc6f03b3c752002f140e6accb74477e527 (diff) | |
download | scummvm-rg350-3a04ee24cd52ffaaf6e2cc4e37e1125c8b3ec9b1.tar.gz scummvm-rg350-3a04ee24cd52ffaaf6e2cc4e37e1125c8b3ec9b1.tar.bz2 scummvm-rg350-3a04ee24cd52ffaaf6e2cc4e37e1125c8b3ec9b1.zip |
exclude for FT sound loops
svn-id: r13543
-rw-r--r-- | scumm/imuse_digi/dimuse.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/scumm/imuse_digi/dimuse.cpp b/scumm/imuse_digi/dimuse.cpp index 7a1add676c..1c0eb5447b 100644 --- a/scumm/imuse_digi/dimuse.cpp +++ b/scumm/imuse_digi/dimuse.cpp @@ -246,20 +246,24 @@ void IMuseDigital::switchToNextRegion(int track) { int fadeDelay = (60 * _sound->getJumpFade(_track[track]->soundHandle, jumpId)) / 1000; if (sampleHookId != 0) { if (_track[track]->curHookId == sampleHookId) { - int fadeTrack = cloneToFadeOutTrack(track, fadeDelay, false); - _track[fadeTrack]->dataOffset = _sound->getRegionOffset(_track[fadeTrack]->soundHandle, _track[fadeTrack]->curRegion); - _track[fadeTrack]->regionOffset = 0; - debug(5, "switchToNextRegion-sound(%d) select %d region, curHookId: %d", _track[fadeTrack]->soundId, _track[fadeTrack]->curRegion, _track[fadeTrack]->curHookId); + if (fadeDelay != 0) { + int fadeTrack = cloneToFadeOutTrack(track, fadeDelay, false); + _track[fadeTrack]->dataOffset = _sound->getRegionOffset(_track[fadeTrack]->soundHandle, _track[fadeTrack]->curRegion); + _track[fadeTrack]->regionOffset = 0; + debug(5, "switchToNextRegion-sound(%d) select %d region, curHookId: %d", _track[fadeTrack]->soundId, _track[fadeTrack]->curRegion, _track[fadeTrack]->curHookId); + _track[fadeTrack]->curHookId = 0; + } _track[track]->curRegion = region; debug(5, "switchToNextRegion-sound(%d) jump to %d region, curHookId: %d", _track[track]->soundId, _track[track]->curRegion, _track[track]->curHookId); _track[track]->curHookId = 0; - _track[fadeTrack]->curHookId = 0; } } else { - int fadeTrack = cloneToFadeOutTrack(track, fadeDelay, false); - _track[fadeTrack]->dataOffset = _sound->getRegionOffset(_track[fadeTrack]->soundHandle, _track[fadeTrack]->curRegion); - _track[fadeTrack]->regionOffset = 0; - debug(5, "switchToNextRegion-sound(%d) select %d region, curHookId: %d", _track[fadeTrack]->soundId, _track[fadeTrack]->curRegion, _track[fadeTrack]->curHookId); + if (fadeDelay != 0) { + int fadeTrack = cloneToFadeOutTrack(track, fadeDelay, false); + _track[fadeTrack]->dataOffset = _sound->getRegionOffset(_track[fadeTrack]->soundHandle, _track[fadeTrack]->curRegion); + _track[fadeTrack]->regionOffset = 0; + debug(5, "switchToNextRegion-sound(%d) select %d region, curHookId: %d", _track[fadeTrack]->soundId, _track[fadeTrack]->curRegion, _track[fadeTrack]->curHookId); + } _track[track]->curRegion = region; debug(5, "switchToNextRegion-sound(%d) jump to %d region, curHookId: %d", _track[track]->soundId, _track[track]->curRegion, _track[track]->curHookId); } |