[Scummvm-cvs-logs] CVS: scummvm/backends/midi adlib.cpp,1.25,1.26

Jamieson Christian jamieson630 at users.sourceforge.net
Thu May 22 21:20:04 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/midi
In directory sc8-pr-cvs1:/tmp/cvs-serv24455/backends/midi

Modified Files:
	adlib.cpp 
Log Message:
Revamped iMuse and Player classes. Player now uses MidiParser to parse its data, which will allow it to parse other MIDI formats. To receive parsed data, Player now derives from MidiDriver to act as a "fake MIDI driver".

Miscellaneous upgrades and fixes to MidiParser, including the Smart Jump (which could not be tested before iMuse started making use of the MidiParser).

*** THIS IS A BIG UPGRADE! EXTENSIVE REGRESSION TESTING IS NEEDED! ***

This has been tested through the intros and a number of other scenes from MI2, FOA and S&M.

NOTE! This upgrade introduces savegame format version V19. Earlier version savegames will load, but the music will simply start over from the beginning. Only V19 and later games will properly restore the position of the music! Don't say you weren't warned....

Index: adlib.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/adlib.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- adlib.cpp	22 May 2003 21:24:36 -0000	1.25
+++ adlib.cpp	23 May 2003 04:19:47 -0000	1.26
@@ -564,9 +564,9 @@
 	void setTimerCallback (void *timer_param, void (*timer_proc) (void *));
 	uint32 getBaseTempo() {
 #ifdef _WIN32_WCE
-		return 0x1D9000 * 2;				// Sampled down to 11 kHz
+		return 3991 * 2; // Sampled down to 11 kHz
 #else	//_WIN32_WCE
-		return 0x1D9000;
+		return 3991; // 88 samples per call (at 22 kHz mono)
 #endif //_WIN32_WCE
 	}
 





More information about the Scummvm-git-logs mailing list