diff options
author | Kari Salminen | 2008-04-03 18:31:30 +0000 |
---|---|---|
committer | Kari Salminen | 2008-04-03 18:31:30 +0000 |
commit | 25ff17419385b827e5bcf7106e48dd312e825dbd (patch) | |
tree | 3b9a748a76ac62dda3dae7482825088417c7d340 /engines/agi | |
parent | 84105227f2d3bee7ba1526012e578ee0c364bbdb (diff) | |
download | scummvm-rg350-25ff17419385b827e5bcf7106e48dd312e825dbd.tar.gz scummvm-rg350-25ff17419385b827e5bcf7106e48dd312e825dbd.tar.bz2 scummvm-rg350-25ff17419385b827e5bcf7106e48dd312e825dbd.zip |
After further testing it seems Apple IIGS midi playing speed is actually 60 ticks per second. Hurrah!
svn-id: r31367
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp index d8fa8bcdb9..322cefde08 100644 --- a/engines/agi/sound.cpp +++ b/engines/agi/sound.cpp @@ -554,8 +554,8 @@ void SoundMgr::playMidiSound() { } uint8 deltaTime = readByte; - uint32 ticksPerMinute = 3495; // Approximation based on tests with Apple IIGS KQ1 and SQ1 under MESS 0.124a - g_midiMillis += (deltaTime * 1000 * 60) / ticksPerMinute; + uint32 ticksPerSec = 60; // Approximation based on tests with Apple IIGS KQ1 and SQ1 under MESS 0.124a + g_midiMillis += (deltaTime * 1000) / ticksPerSec; // Check for end of MIDI sequence marker (This time it after reading delta-time) if (*p == MIDI_BYTE_STOP_SEQUENCE) { |