diff options
author | Torbjörn Andersson | 2007-02-19 21:09:23 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-02-19 21:09:23 +0000 |
commit | 60e0f7624af149529b30d5d1b96364cd4b6db12a (patch) | |
tree | c7e02e43462870a76b8b12409bbd9ce37ccff520 /engines | |
parent | 301fe919031bb003656c410290ed5e846dd2cfa6 (diff) | |
download | scummvm-rg350-60e0f7624af149529b30d5d1b96364cd4b6db12a.tar.gz scummvm-rg350-60e0f7624af149529b30d5d1b96364cd4b6db12a.tar.bz2 scummvm-rg350-60e0f7624af149529b30d5d1b96364cd4b6db12a.zip |
As Fingolfin pointed out, we no longer need two different CD timer intervals
for Loom and everything else. Adjusted the value, taking advantage of the
greater timer resolution, and clarified which two scenes need to be tested if
we ever want to adjust this value further.
svn-id: r25731
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/sound.cpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp index fd94ea9b20..bc3a80676b 100644 --- a/engines/scumm/sound.cpp +++ b/engines/scumm/sound.cpp @@ -1000,20 +1000,18 @@ static void cd_timer_handler(void *refCon) { } void Sound::startCDTimer() { - int timer_interval; - - // The timer interval has been tuned for Loom CD and the Monkey 1 - // intro. I have to use 100 for Loom, or there will be a nasty stutter - // when Chaos first appears, and I have to use 101 for Monkey 1 or the - // intro music will be cut short. - - if (_vm->_game.id == GID_LOOM && _vm->_game.version == 4) - timer_interval = 100; - else - timer_interval = 101; + // This timer interval is based on two scenes: The Monkey Island 1 + // intro, and the scene in Loom CD where Chaos appears. In both cases + // the game plays the scene as two separate sounds, even though both + // halves are right next to each other in the CD track. Probably so + // that you can hit Escape to skip the first half. + // + // Make it too low, and the Monkey Island theme will be cut short. Make + // it too high, and there will be a nasty "hiccup" just as Chaos + // appears. _vm->_timer->removeTimerProc(&cd_timer_handler); - _vm->_timer->installTimerProc(&cd_timer_handler, 1000 * timer_interval, _vm); + _vm->_timer->installTimerProc(&cd_timer_handler, 100700, _vm); } void Sound::stopCDTimer() { |