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