04-13-2024, 03:18 AM
With the default MIDI library, there is a file that indicates how to filter out USB ports so that only valid MIDI ports are connected to. The broad filter is USB class=1, subclass=3. Looking at the USB specification for audio devices, it lists this:
AUDIOCONTROL 0x01
AUDIOSTREAMING 0x02
MIDISTREAMING 0x03
So if you want to test out a build where I add subclass 1 and 2 to the file, so it will connect to any audio USB port, we can try it out, but I'm not sure I would want to leave it like that, as it seems potentially dangerous and incorrect to connect to any available audio port and start sending MIDI messages to it. I might have to add a toggle somewhere that switches between multiple difference filter files for the MIDI ports so that users can control this if it works. Let me know if you want me to send you a link to a build to try this out.
Mike
AUDIOCONTROL 0x01
AUDIOSTREAMING 0x02
MIDISTREAMING 0x03
So if you want to test out a build where I add subclass 1 and 2 to the file, so it will connect to any audio USB port, we can try it out, but I'm not sure I would want to leave it like that, as it seems potentially dangerous and incorrect to connect to any available audio port and start sending MIDI messages to it. I might have to add a toggle somewhere that switches between multiple difference filter files for the MIDI ports so that users can control this if it works. Let me know if you want me to send you a link to a build to try this out.
Mike