[Scummvm-cvs-logs] SF.net SVN: scummvm: [31367] scummvm/trunk/engines/agi/sound.cpp
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Thu Apr 3 20:31:30 CEST 2008
Revision: 31367
http://scummvm.svn.sourceforge.net/scummvm/?rev=31367&view=rev
Author: buddha_
Date: 2008-04-03 11:31:30 -0700 (Thu, 03 Apr 2008)
Log Message:
-----------
After further testing it seems Apple IIGS midi playing speed is actually 60 ticks per second. Hurrah!
Modified Paths:
--------------
scummvm/trunk/engines/agi/sound.cpp
Modified: scummvm/trunk/engines/agi/sound.cpp
===================================================================
--- scummvm/trunk/engines/agi/sound.cpp 2008-04-03 18:12:09 UTC (rev 31366)
+++ scummvm/trunk/engines/agi/sound.cpp 2008-04-03 18:31:30 UTC (rev 31367)
@@ -554,8 +554,8 @@
}
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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list