Browse Source

Fix JackEngine::ClientCloseAux

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1851 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.70
sletz 17 years ago
parent
commit
0fd466859d
2 changed files with 13 additions and 1 deletions
  1. +1
    -1
      common/JackEngine.cpp
  2. +12
    -0
      example-clients/metro.c

+ 1
- 1
common/JackEngine.cpp View File

@@ -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);


+ 12
- 0
example-clients/metro.c View File

@@ -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;


Loading…
Cancel
Save