Commit 0fd46685 authored by sletz's avatar sletz
Browse files

Fix JackEngine::ClientCloseAux

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1851 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 97c9add6
......@@ -572,7 +572,7 @@ int JackEngine::ClientCloseAux(int refnum, JackClientInterface* client, bool wai
break;
}
fGraphManager->GetInputPorts(refnum, ports);
fGraphManager->GetOutputPorts(refnum, ports);
for (int i = 0; i < PORT_NUM_FOR_CLIENT; i++) {
if (ports[i] != EMPTY)
NotifyPortRegistation(ports[i], false);
......
......@@ -85,6 +85,12 @@ process_audio (jack_nframes_t nframes, void *arg)
return 0;
}
void Jack_Port_Register(jack_port_id_t port, int mode, void *arg)
{
printf("Jack_Port_Register port = %ld mode = %ld\n", port, mode);
}
/*
int
process (jack_nframes_t nframes, void *arg)
......@@ -259,6 +265,12 @@ main (int argc, char *argv[])
wave[i] = 0;
}
if (jack_set_port_registration_callback(client, Jack_Port_Register, 0) != 0) {
printf("Error when calling jack_set_port_registration_callback() !\n");
}
if (jack_activate (client)) {
fprintf (stderr, "cannot activate client");
return 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment