diff options
author | Kari Salminen | 2008-04-03 18:12:09 +0000 |
---|---|---|
committer | Kari Salminen | 2008-04-03 18:12:09 +0000 |
commit | 84105227f2d3bee7ba1526012e578ee0c364bbdb (patch) | |
tree | 4d2a11e316f94d2173da96b3fe9aed2779eacfb4 /engines/agi | |
parent | 4836c1109ccf7af8c4749e079d20b575f581d470 (diff) | |
download | scummvm-rg350-84105227f2d3bee7ba1526012e578ee0c364bbdb.tar.gz scummvm-rg350-84105227f2d3bee7ba1526012e578ee0c364bbdb.tar.bz2 scummvm-rg350-84105227f2d3bee7ba1526012e578ee0c364bbdb.zip |
Fix naming of the Apple IIGS midi speed variable and its value (Was erronously named bpm although was really ticks per second rather than ticks per minute).
svn-id: r31366
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) { |