Repository navigation
Replies: 1 comment 4 replies
|
hello! hmm, the problem is that "sound" doesn't tell us if it's midi or not, e.g. here plugging my webcam which has a microphone also triggers "add (sound)" events with udev ; I always see the snd_seq events coming in so that's the determinant I used to detect 'did we plug a MIDI device' and then check for a few seconds as alsa rawmidi doesn't tell us immediately. Unless you have maybe disabled snd seq at the kernel level ? |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm testing the ALSA_RAW observer with libremidi 5.4.3 on Linux. Enumeration and RawMIDI I/O work correctly, but add/remove callbacks aren't triggered on USB MIDI hotplug.
udevadm monitor --kernel --udev --subsystem-match=sound shows the RawMIDI device appearing as sound/cardN/midiCNDN, with subsystem sound.
In alsa_raw/observer.hpp, the observer checks:
if (!act.empty() && ss == "snd_seq")
so the sound event doesn't appear to start the rescan timer.
Is snd_seq intentional here? Is there another udev event that the RAW observer expects to receive?
All reactions