diff options
| author | James Brown | 2002-09-29 11:11:42 +0000 |
|---|---|---|
| committer | James Brown | 2002-09-29 11:11:42 +0000 |
| commit | dfdb1f7547d30d98936bbc88a5174ebcfd5808ed (patch) | |
| tree | 6224e1664e9ee6560f9bf6b8f23f75197a995902 /common | |
| parent | 588815a11e99ac941304dad07e686a78e214d2f7 (diff) | |
| download | scummvm-rg350-dfdb1f7547d30d98936bbc88a5174ebcfd5808ed.tar.gz scummvm-rg350-dfdb1f7547d30d98936bbc88a5174ebcfd5808ed.tar.bz2 scummvm-rg350-dfdb1f7547d30d98936bbc88a5174ebcfd5808ed.zip | |
Merge in 615745: GMD via AdLib emulation
Remove MIDIEMU driver obsoleted by patch.
Change functionality to fallback to AdLib/AdLibGMD Emulation where MIDI init fails
Switch to NewGUI by default (old code retained 'Just in case')
svn-id: r5033
Diffstat (limited to 'common')
| -rw-r--r-- | common/gameDetector.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp index 11bbb2e390..464372fa8f 100644 --- a/common/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -587,9 +587,16 @@ OSystem *GameDetector::createSystem() { MidiDriver *GameDetector::createMidi() { int drv = _midi_driver; -#if defined (_WIN32_WCE) - /* Always use MIDI emulation on CE devices */ - if (drv == MD_AUTO) drv = MD_MIDIEMU; +#if defined (_WIN32_WCE) || defined(UNIX) || defined(X11_BACKEND) + /* Always use MIDI emulation via adlib driver on CE and UNIX devices */ + + /* FIXME: We should, for the Unix targets, attempt to detect */ + /* whether a sequencer is available, and use it in */ + /* preference */ + if (drv == MD_AUTO) { + _use_adlib = true; + return NULL; + } #endif #if defined (WIN32) && !defined(_WIN32_WCE) @@ -598,17 +605,11 @@ MidiDriver *GameDetector::createMidi() { #elif defined(__APPLE__) || defined(macintosh) /* MD_QTMUSIC is default MidiDriver on MacOS targets */ if (drv == MD_AUTO) drv = MD_QTMUSIC; -#elif defined(UNIX) || defined(X11_BACKEND) - /* MD_MIDIEMU is default MidiDriver on UNIX targets. */ - /* FIXME: Attempt to detect if sequencer is available, - and use it in preference. */ - if (drv == MD_AUTO) drv = MD_MIDIEMU; #endif 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 |
