aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMax Horn2007-09-30 12:12:22 +0000
committerMax Horn2007-09-30 12:12:22 +0000
commit5a07c3c552133c0802520ba69c3b4ae0353cee33 (patch)
tree88e61a255c6f25ca3b81901a0fe035bff51b6bc8 /sound
parent341a392de29bd1f881e0051d98f67caf9f21b98a (diff)
downloadscummvm-rg350-5a07c3c552133c0802520ba69c3b4ae0353cee33.tar.gz
scummvm-rg350-5a07c3c552133c0802520ba69c3b4ae0353cee33.tar.bz2
scummvm-rg350-5a07c3c552133c0802520ba69c3b4ae0353cee33.zip
Patch #1804801: DMedia MIDI driver for IRIX
svn-id: r29142
Diffstat (limited to 'sound')
-rw-r--r--sound/mididrv.cpp4
-rw-r--r--sound/mididrv.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/sound/mididrv.cpp b/sound/mididrv.cpp
index 09a72366f6..aa1f4bf2af 100644
--- a/sound/mididrv.cpp
+++ b/sound/mididrv.cpp
@@ -48,6 +48,7 @@ static const MidiDriverDescription s_musicDrivers[] = {
#if defined(UNIX) && !defined(__BEOS__) && !defined(MACOSX) && !defined(__MAEMO__)
{"seq", "SEQ", MD_SEQ, MDT_MIDI},
+ {"dmedia", "DMedia", MD_DMEDIA, MDT_MIDI},
#endif
#if defined(MACOSX)
@@ -247,6 +248,9 @@ MidiDriver *MidiDriver::createMidi(int midiDriver) {
#if defined(UNIX) && !defined(__BEOS__) && !defined(MACOSX) && !defined(__MAEMO__)
case MD_SEQ: return MidiDriver_SEQ_create();
#endif
+#if defined(IRIX)
+ case MD_DMEDIA: return MidiDriver_DMEDIA_create();
+#endif
#if defined(MACOSX)
case MD_QTMUSIC: return MidiDriver_QT_create();
case MD_COREAUDIO: return MidiDriver_CORE_create();
diff --git a/sound/mididrv.h b/sound/mididrv.h
index 120b931170..6a18b441cc 100644
--- a/sound/mididrv.h
+++ b/sound/mididrv.h
@@ -67,6 +67,9 @@ enum MidiDriverType {
// MorphOS
MD_ETUDE,
+ // IRIX
+ MD_DMEDIA,
+
// MIDI softsynths
MD_FLUIDSYNTH,
MD_MT32,
@@ -273,6 +276,7 @@ extern MidiDriver *MidiDriver_CORE_create();
extern MidiDriver *MidiDriver_CoreMIDI_create();
extern MidiDriver *MidiDriver_ETUDE_create();
extern MidiDriver *MidiDriver_ALSA_create();
+extern MidiDriver *MidiDriver_DMEDIA_create();
extern MidiDriver *MidiDriver_YM2612_create(Audio::Mixer *mixer);
#ifdef USE_FLUIDSYNTH
extern MidiDriver *MidiDriver_FluidSynth_create(Audio::Mixer *mixer);