Commit 52d27f93 authored by Pranay Gupta's avatar Pranay Gupta

commit-ported_Improved OSS midi handling on linux

parent df464075
......@@ -590,19 +590,21 @@ static void sys_save_midi_params(
void sys_open_midi(int nmidiindev, int *midiindev,
int nmidioutdev, int *midioutdev, int enable)
{
if (enable)
{
#ifdef USEAPI_ALSA
midi_alsa_init();
midi_alsa_init();
#endif
#ifdef USEAPI_OSS
midi_oss_init();
midi_oss_init();
#endif
if (enable)
#ifdef USEAPI_ALSA
if (sys_midiapi == API_ALSA)
sys_alsa_do_open_midi(nmidiindev, midiindev, nmidioutdev, midioutdev);
else
if (sys_midiapi == API_ALSA)
sys_alsa_do_open_midi(nmidiindev, midiindev, nmidioutdev, midioutdev);
else
#endif /* ALSA */
sys_do_open_midi(nmidiindev, midiindev, nmidioutdev, midioutdev);
sys_do_open_midi(nmidiindev, midiindev, nmidioutdev, midioutdev);
}
sys_save_midi_params(nmidiindev, midiindev,
nmidioutdev, midioutdev);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment