aboutsummaryrefslogtreecommitdiff
path: root/desiredata
diff options
context:
space:
mode:
Diffstat (limited to 'desiredata')
-rw-r--r--desiredata/src/s_midi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/desiredata/src/s_midi.c b/desiredata/src/s_midi.c
index f8ee0fd9..b77017e6 100644
--- a/desiredata/src/s_midi.c
+++ b/desiredata/src/s_midi.c
@@ -411,13 +411,13 @@ void sys_open_midi(int nmidiindev, int *midiindev, int nmidioutdev, int *midiout
midi_oss_init();
#endif
#endif
- if (enable)
+ if (enable) {
#ifdef USEAPI_ALSA
- if (sys_midiapi == API_ALSA)
- sys_alsa_do_open_midi(nmidiindev, midiindev, nmidioutdev, midioutdev);
+ 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_save_midi_params(nmidiindev, midiindev, nmidioutdev, midioutdev);
sys_vgui("set pd_whichmidiapi %d\n", sys_midiapi);
}