jack_port_connect_callback incorrect MIDI port ids/names
Environment
- Ubuntu 22.04 Linux 5.15.0-33-lowlatency #34 (closed)-Ubuntu SMP PREEMPT Wed May 18 15:38:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
- PW Installed as instructions here
- Qjackctl Version: 0.9.6, Using: Qt 5.15.3
Compiled with libpipewire 0.3.48
Linked with libpipewire 0.3.48
Application name: (null)
Program name: pw
Host name: H3
Client name: pw
Domain: pipewire
Problem description
The names returned in the jack port connect callback shows incorrect port names Either the API call to retrieve the names or the ids are incorrect. More often than not, the ID's are incorrect. Even sometimes when making connections with different destination port the same destination port id is received at entry of the callback (there were no port connection changes in between).
jack_port_connect_callback(jack_port_id_t source, jack_port_id_t destination, int connect, void *arg)
port = jack_port_by_id (client, source);
jack_port_name(port)
P.S: is function jack_port_by_id (client, id) implemented ?
Using any id value does not return any of the actual ports (pointers)
How to reproduce
1/ Run a Jack client and register the connection callback
2/ Make connections in JackQctrl or via the Jack API
3/ Print the port names to the screen