mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-15 20:30:49 +00:00
Force default device if none is selected
This commit is contained in:
parent
26325edb22
commit
ebb383b47f
1 changed files with 2 additions and 2 deletions
|
@ -227,8 +227,8 @@ new_fluid_winmidi_driver(fluid_settings_t *settings,
|
|||
/* get the device name. if none is specified, use the default device. */
|
||||
if(fluid_settings_copystr(settings, "midi.winmidi.device", dev_name, MAXPNAMELEN) != FLUID_OK)
|
||||
{
|
||||
FLUID_LOG(FLUID_ERR, "Error getting MIDI device name");
|
||||
return NULL;
|
||||
FLUID_LOG(FLUID_DBG, "No MIDI in device selected, using \"default\"");
|
||||
FLUID_STRCPY(dev_name, "default");
|
||||
}
|
||||
|
||||
/* check if there any midi devices installed */
|
||||
|
|
Loading…
Reference in a new issue