diff options
author | Lionel Ulmer | 2002-05-07 22:07:28 +0000 |
---|---|---|
committer | Lionel Ulmer | 2002-05-07 22:07:28 +0000 |
commit | dd3129b882a133d3b4702d96cd084abb20b8b9bf (patch) | |
tree | a7b836c7ccd8e9bcb9e27321fc78be78394bd6f7 /gameDetector.cpp | |
parent | da3ada18152e2a184d9dcd0dec57d65ac60fbccb (diff) | |
download | scummvm-rg350-dd3129b882a133d3b4702d96cd084abb20b8b9bf.tar.gz scummvm-rg350-dd3129b882a133d3b4702d96cd084abb20b8b9bf.tar.bz2 scummvm-rg350-dd3129b882a133d3b4702d96cd084abb20b8b9bf.zip |
First commit of the OPL2 MIDI driver (to have MIDI music without
requiring any OS-level MIDI support).
This was taken from AdPlug.
This is *very* buggy for now (well, it works, but it sounds just plain
ugly :-) ).
svn-id: r4232
Diffstat (limited to 'gameDetector.cpp')
-rw-r--r-- | gameDetector.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gameDetector.cpp b/gameDetector.cpp index 8490226048..7446a20d34 100644 --- a/gameDetector.cpp +++ b/gameDetector.cpp @@ -317,6 +317,7 @@ bool GameDetector::parseMusicDriver(const char *s) { {"qt",MD_QTMUSIC}, {"core",MD_COREAUDIO}, {"amidi",MD_AMIDI}, + {"midiemu",MD_MIDIEMU}, {"adlib",-1}, }; @@ -579,6 +580,7 @@ MidiDriver *GameDetector::createMidi() { switch(drv) { case MD_AUTO: case MD_NULL: return MidiDriver_NULL_create(); + case MD_MIDIEMU: return MidiDriver_MIDIEMU_create(); #if defined(WIN32) && !defined(_WIN32_WCE) case MD_WINDOWS: return MidiDriver_WIN_create(); #endif @@ -586,13 +588,13 @@ MidiDriver *GameDetector::createMidi() { case MD_AMIDI: return MidiDriver_AMIDI_create(); #endif #if defined(UNIX) && !defined(__BEOS__) - case MD_SEQ: return MidiDriver_SEQ_create(); + case MD_SEQ: return MidiDriver_SEQ_create(); #endif #if defined(__APPLE__) || defined(macintosh) - case MD_QTMUSIC: return MidiDriver_QT_create(); + case MD_QTMUSIC: return MidiDriver_QT_create(); #endif #if defined(__APPLE__) - case MD_COREAUDIO: return MidiDriver_CORE_create(); + case MD_COREAUDIO: return MidiDriver_CORE_create(); #endif } |