diff options
Diffstat (limited to 'sound/mididrv.cpp')
-rw-r--r-- | sound/mididrv.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sound/mididrv.cpp b/sound/mididrv.cpp index 53bc224180..358d42d751 100644 --- a/sound/mididrv.cpp +++ b/sound/mididrv.cpp @@ -216,7 +216,7 @@ int MidiDriver::detectMusicDriver(int flags) { MidiDriver *MidiDriver::createMidi(int midiDriver) { switch (midiDriver) { - case MD_NULL: return MidiDriver_NULL_create(); + case MD_NULL: return MidiDriver_NULL_create(g_system->getMixer()); case MD_ADLIB: return MidiDriver_ADLIB_create(g_system->getMixer()); @@ -238,34 +238,34 @@ MidiDriver *MidiDriver::createMidi(int midiDriver) { #if defined(PALMOS_MODE) #if defined(COMPILE_CLIE) - case MD_YPA1: return MidiDriver_YamahaPa1_create(); + case MD_YPA1: return MidiDriver_YamahaPa1_create(g_system->getMixer()); #elif defined(COMPILE_ZODIAC) && (!defined(ENABLE_SCUMM) || !defined(PALMOS_ARM)) - case MD_ZODIAC: return MidiDriver_Zodiac_create(); + case MD_ZODIAC: return MidiDriver_Zodiac_create(g_system->getMixer()); #endif #endif #if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__SYMBIAN32__) - case MD_WINDOWS: return MidiDriver_WIN_create(); + case MD_WINDOWS: return MidiDriver_WIN_create(g_system->getMixer()); #endif #if defined(UNIX) && !defined(__BEOS__) && !defined(MACOSX) && !defined(__MAEMO__) - case MD_SEQ: return MidiDriver_SEQ_create(); + case MD_SEQ: return MidiDriver_SEQ_create(g_system->getMixer()); #endif #if defined(UNIX) - case MD_TIMIDITY: return MidiDriver_TIMIDITY_create(); + case MD_TIMIDITY: return MidiDriver_TIMIDITY_create(g_system->getMixer()); #endif #if defined(IRIX) - case MD_DMEDIA: return MidiDriver_DMEDIA_create(); + case MD_DMEDIA: return MidiDriver_DMEDIA_create(g_system->getMixer()); #endif #if defined(MACOSX) - case MD_QTMUSIC: return MidiDriver_QT_create(); - case MD_COREAUDIO: return MidiDriver_CORE_create(); - case MD_COREMIDI: return MidiDriver_CoreMIDI_create(); + case MD_QTMUSIC: return MidiDriver_QT_create(g_system->getMixer()); + case MD_COREAUDIO: return MidiDriver_CORE_create(g_system->getMixer()); + case MD_COREMIDI: return MidiDriver_CoreMIDI_create(g_system->getMixer()); #endif #if defined(UNIX) && defined(USE_ALSA) - case MD_ALSA: return MidiDriver_ALSA_create(); + case MD_ALSA: return MidiDriver_ALSA_create(g_system->getMixer()); #endif #if defined(__amigaos4__) - case MD_CAMD: return MidiDriver_CAMD_create(); + case MD_CAMD: return MidiDriver_CAMD_create(g_system->getMixer()); #endif } |