aboutsummaryrefslogtreecommitdiff
path: root/backends/midi
diff options
context:
space:
mode:
authorJamieson Christian2003-05-23 04:19:47 +0000
committerJamieson Christian2003-05-23 04:19:47 +0000
commitc6568530bd6d558045c912c6318d1d7d8a60a39d (patch)
treebec2a496ca22b746d01b49afe74194be2bd756d5 /backends/midi
parent006d0a5ff81771f8387f13187675601fd52e2668 (diff)
downloadscummvm-rg350-c6568530bd6d558045c912c6318d1d7d8a60a39d.tar.gz
scummvm-rg350-c6568530bd6d558045c912c6318d1d7d8a60a39d.tar.bz2
scummvm-rg350-c6568530bd6d558045c912c6318d1d7d8a60a39d.zip
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.... svn-id: r7849
Diffstat (limited to 'backends/midi')
-rw-r--r--backends/midi/adlib.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/adlib.cpp b/backends/midi/adlib.cpp
index dc3898ed45..743930f8f4 100644
--- a/backends/midi/adlib.cpp
+++ b/backends/midi/adlib.cpp
@@ -564,9 +564,9 @@ public:
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
}