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.
Show replies by date