From a85a75f93dab95f6b3272349762332d3b61ddfc1 Mon Sep 17 00:00:00 2001 From: klemek Date: Sat, 16 May 2026 17:36:50 +0200 Subject: [PATCH] fix: sync midi read/write --- src/midi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/midi.c b/src/midi.c index 98b4c50..7074fcf 100644 --- a/src/midi.c +++ b/src/midi.c @@ -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) {