Skip to content

Commit

Permalink
AUDIO: cleanup MidiDriver::detectDevice()
Browse files Browse the repository at this point in the history
(wrong enum usage)
  • Loading branch information
athrxx committed Jun 5, 2011
1 parent 8d23f69 commit 506bd3c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions audio/mididrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -246,7 +246,7 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
GUI::MessageDialog dialog(warningMsg);
dialog.runModal();
}
hdl = MT_AUTO;
hdl = 0;
}
}

Expand All @@ -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;
}
}
}
Expand All @@ -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;
}
}
}
Expand Down Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 506bd3c

Please sign in to comment.