jackclient-python
jackclient-python copied to clipboard
put _wrap_port_ptr calls in try statment, to avoid errors when port is nor audio nor midi
catching a redondant AssertionError in RaySession: https://github.com/Houston4444/RaySession/issues/269, I saw that, for a reason I ignore now, some ports are created and destroyed quickly by KDE Plasma under Wayland. These ports are not audio nor midi, they are of type 'other'. I am ok to find it strange, but I don't think that anything prevent this in JACK (here it is PipeWire).
So, the idea of this PR is to not display the error when a port has other type than _AUDIO or _MIDI, because it is not forbidden by the JACK API.
Another possibility would be to create another class OtherPort (and OwnOtherPort).