diff options
author | Kari Salminen | 2008-04-03 14:33:53 +0000 |
---|---|---|
committer | Kari Salminen | 2008-04-03 14:33:53 +0000 |
commit | 4836c1109ccf7af8c4749e079d20b575f581d470 (patch) | |
tree | fed9c2d5bfd230c4e4a91ebc01f2d8e464d92ec5 /engines | |
parent | acc5d79d7c76c4ad5cc45c608ebee72c0a7af1de (diff) | |
download | scummvm-rg350-4836c1109ccf7af8c4749e079d20b575f581d470.tar.gz scummvm-rg350-4836c1109ccf7af8c4749e079d20b575f581d470.tar.bz2 scummvm-rg350-4836c1109ccf7af8c4749e079d20b575f581d470.zip |
Fix Apple IIGS midi playing speed (Based on tests with Apple IIGS KQ1 and SQ1 under MESS 0.124a)
svn-id: r31365
Diffstat (limited to 'engines')
-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) { |