AUDIO: fixed bug when device was set to default and only MDT_MIDI flags were passed to detectDevice()

svn-id: r50510
This commit is contained in:
Florian Kagerer 2010-06-29 21:56:04 +00:00
parent 97186bd5b0
commit 7455c3ec39

View File

@ -228,6 +228,9 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) {
tp = MT_ADLIB;
else if (flags & MDT_PCSPK)
tp = MT_PCSPK;
else if (l == 0)
// if we haven't tried to find a MIDI device yet we do this now.
continue;
else
tp = MT_AUTO;