Skip to content
Snippets Groups Projects
Commit 1e02502c authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Merge branch 'pranay_36/purr-data-pd-l2ork_port_midi'

parents df464075 52d27f93
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment