aboutsummaryrefslogtreecommitdiff
path: root/gameDetector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gameDetector.cpp')
-rw-r--r--gameDetector.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gameDetector.cpp b/gameDetector.cpp
index 7446a20d34..61e56c2c33 100644
--- a/gameDetector.cpp
+++ b/gameDetector.cpp
@@ -575,6 +575,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)
+ /* 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) {