CVSROOT: /cvs Module name: src Changes by: [email protected] 2026/05/20 07:27:41
Modified files:
usr.bin/sndiod : midi.c midi.h
Log message:
sndiod: Add a reference counter to the port structure
Using a counter is simpler than (ab-)using the midi endpoint bitmaps
to figure out if the port is in use. In turn this allows holding a
reference to the port without involving midi endpoint
connections. This change also reduces the differences between MIDI
ports and audio devices: less logic, less bugs.
