fix: sync midi read/write
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ void midi_open(MidiDevice *device, const char *name, bool log_error) {
|
||||
snd_lib_log_set_handler(snd_no_log);
|
||||
}
|
||||
|
||||
snd_rawmidi_open(&device->input, &device->output, name, SND_RAWMIDI_NONBLOCK);
|
||||
snd_rawmidi_open(&device->input, &device->output, name, SND_RAWMIDI_SYNC);
|
||||
|
||||
device->connected = device->input != NULL && device->output != NULL;
|
||||
if (log_error) {
|
||||
|
||||
Reference in New Issue
Block a user