aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorEugene Sandulenko2004-11-06 01:41:32 +0000
committerEugene Sandulenko2004-11-06 01:41:32 +0000
commit805b21181ab7138da6960ade703b25716120fc29 (patch)
tree8a8b04662d7e25f0b6d3675452cd50fc589b5ee6 /sound
parentab7c30e4ed59004f311fd068746d1537c9da5f50 (diff)
downloadscummvm-rg350-805b21181ab7138da6960ade703b25716120fc29.tar.gz
scummvm-rg350-805b21181ab7138da6960ade703b25716120fc29.tar.bz2
scummvm-rg350-805b21181ab7138da6960ade703b25716120fc29.zip
Major MT-32 emu overhaul based on KingGuppy's code.
o added configure option o mi2 intro doesn't freeze anymore and has no sound glitches o missing instruments in many titles are fixed o numerous memory overwrite bugs are fixed o code is cleaned a lot and splitted into many smaller files o mt32.cpp went to backends/midi o synced with upstream code o reverberation fixed * don't complain about File class wrapper :) * all custom types are back * #pragmas are to do * maybe some indentation is wrong too I prefer smaller commits, but this thing came in one piece. svn-id: r15715
Diffstat (limited to 'sound')
-rw-r--r--sound/mididrv.cpp2
-rw-r--r--sound/mididrv.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/sound/mididrv.cpp b/sound/mididrv.cpp
index 5c66297f59..ed37e93272 100644
--- a/sound/mididrv.cpp
+++ b/sound/mididrv.cpp
@@ -55,7 +55,9 @@ static const struct MidiDriverDescription midiDrivers[] = {
{"towns", "FM Towns", MD_TOWNS},
{"pcspk", "PC Speaker", MD_PCSPK},
{"pcjr", "IBM PCjr", MD_PCJR},
+#ifdef USE_MT32EMU
{"mt32", "MT-32", MD_MT32},
+#endif
#if defined(__PALM_OS__)
{"ypa1", "Yamaha Pa1", MD_YPA1},
diff --git a/sound/mididrv.h b/sound/mididrv.h
index 9300e47b3a..b6e57fe7f9 100644
--- a/sound/mididrv.h
+++ b/sound/mididrv.h
@@ -178,7 +178,9 @@ extern MidiDriver *MidiDriver_CORE_create();
extern MidiDriver *MidiDriver_ETUDE_create();
extern MidiDriver *MidiDriver_ALSA_create();
extern MidiDriver *MidiDriver_YM2612_create(SoundMixer *mixer);
-extern MidiDriver *MidiDriver_MT32_create(SoundMixer *mixer, const char *path);
+#ifdef USE_MT32EMU
+extern MidiDriver *MidiDriver_MT32_create(SoundMixer *mixer);
+#endif
extern MidiDriver *MidiDriver_YamahaPa1_create();
extern MidiDriver *MidiDriver_Zodiac_create();