fix: remove not backward compatible snd_lib_log_set_handler
Clang Lint CI / lint-no-video (push) Successful in 55s
Clang Build CI / run-no-video (push) Successful in 1m36s
Clang Build CI / run-video (push) Successful in 1m37s
Clang Build CI / build-release (push) Successful in 1m57s
Clang Lint CI / lint-video (push) Successful in 2m5s

This commit is contained in:
2026-05-16 18:56:45 +02:00
parent b01314778d
commit 591bfbe0aa
-6
View File
@@ -21,10 +21,6 @@ void midi_open(MidiDevice *device, const char *name, bool log_error) {
device->input = NULL;
device->output = NULL;
if (!log_error) {
snd_lib_log_set_handler(snd_no_log);
}
device->connected = snd_rawmidi_open(&device->input, &device->output, name,
SND_RAWMIDI_SYNC) == 0 &&
device->input != NULL && device->output != NULL;
@@ -34,8 +30,6 @@ void midi_open(MidiDevice *device, const char *name, bool log_error) {
} else {
log_warn("(%s) MIDI open failed", name);
}
} else {
snd_lib_log_set_handler(snd_lib_vlog);
}
}