diff options
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 508a065761..d8fa8bcdb9 100644 --- a/engines/agi/sound.cpp +++ b/engines/agi/sound.cpp @@ -554,8 +554,8 @@ void SoundMgr::playMidiSound() { } uint8 deltaTime = readByte; - double bpm = 58.25; // Approximation based on tests with Apple IIGS KQ1 and SQ1 under MESS 0.124a - g_midiMillis += (uint32) ((deltaTime * 1000) / bpm); + uint32 ticksPerMinute = 3495; // Approximation based on tests with Apple IIGS KQ1 and SQ1 under MESS 0.124a + g_midiMillis += (deltaTime * 1000 * 60) / ticksPerMinute; // Check for end of MIDI sequence marker (This time it after reading delta-time) if (*p == MIDI_BYTE_STOP_SEQUENCE) { |