aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agi/sound.cpp4
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) {