diff options
author | athrxx | 2011-06-06 01:15:04 +0200 |
---|---|---|
committer | athrxx | 2011-06-06 01:15:59 +0200 |
commit | 506bd3c3a64c56868d8445745310ef912c9b7403 (patch) | |
tree | e48e604f430548b465cde3b0daa0ede1b13b654d | |
parent | 8d23f692f2938036eaac7aedab2847bf958cb424 (diff) | |
download | scummvm-rg350-506bd3c3a64c56868d8445745310ef912c9b7403.tar.gz scummvm-rg350-506bd3c3a64c56868d8445745310ef912c9b7403.tar.bz2 scummvm-rg350-506bd3c3a64c56868d8445745310ef912c9b7403.zip |
AUDIO: cleanup MidiDriver::detectDevice()
(wrong enum usage)
-rw-r--r-- | audio/mididrv.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/audio/mididrv.cpp b/audio/mididrv.cpp index 03cea519f1..69214fdca1 100644 --- a/audio/mididrv.cpp +++ b/audio/mididrv.cpp @@ -128,7 +128,7 @@ Common::String MidiDriver::getDeviceString(DeviceHandle handle, DeviceStringType MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) { // Query the selected music device (defaults to MT_AUTO device). DeviceHandle hdl = getDeviceHandle(ConfMan.get("music_driver")); - DeviceHandle reslt = MT_AUTO; + DeviceHandle reslt = 0; _forceTypeMT32 = false; @@ -208,7 +208,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) { } } - reslt = MT_AUTO; + reslt = 0; // If the selected driver did not match the flags setting, // we try to determine a suitable and "optimal" music driver. @@ -246,7 +246,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) { GUI::MessageDialog dialog(warningMsg); dialog.runModal(); } - hdl = MT_AUTO; + hdl = 0; } } @@ -263,7 +263,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) { return hdl; else // No warning here, since the user hasn't expressly requested anything. - hdl = MT_AUTO; + hdl = 0; } } } @@ -281,7 +281,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) { return hdl; else // No warning here, since the user hasn't expressly requested anything. - hdl = MT_AUTO; + hdl = 0; } } } @@ -337,7 +337,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) { return hdl; else // No warning here, since the user hasn't expressly requested anything. - hdl = MT_AUTO; + hdl = 0; } } } |