jack_set_port_connect_callback

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

jack_set_port_connect_callback

Sigmund Gudvangen
Hi,

I am trying to detect port connection and deconnection, using a callback function, thus:

void JackPortInfo::connectionJackCallback(jack_port_id_t a, jack_port_id_t b, int connect, void* arg)  // deceard as static
{
    qDebug() << "JackPortInfo::connectionJackCallback()";
}

bool JackPortInfo::initPortCallback()
{
    int check;
    if ((check = jack_set_port_connect_callback(client, connectionJackCallback, this)))
       qDebug() << "check: " << check;
}
I call initPortCallback() just after
jack_client_open(...)
and it returns NULL, so this part looks OK. However, connectionJackCallback is not called when I start/stop Audacity. What am I overlooking?

Sigmund.


_______________________________________________
Linux-audio-dev mailing list
[hidden email]
https://lists.linuxaudio.org/listinfo/linux-audio-dev