Browse Source

debug client activation - transport sync?

pull/450/head
Christoph Kuhr 7 years ago
parent
commit
99a44ed3a3
2 changed files with 16 additions and 5 deletions
  1. +8
    -5
      example-clients/thru_client.c
  2. +8
    -0
      example-clients/thru_client.c~

+ 8
- 5
example-clients/thru_client.c View File

@@ -128,11 +128,6 @@ main ( int argc, char *argv[] )

jack_on_shutdown ( client, jack_shutdown, 0 );

jack_position_t pos;
jack_transport_state_t jstate;
jstate = jack_transport_query ( client, &pos );

printf("no transport %d", (int)jstate);


@@ -163,6 +158,14 @@ main ( int argc, char *argv[] )
exit ( 1 );
}


jack_position_t pos;
jack_transport_state_t jstate;
jstate = jack_transport_query ( client, &pos );

printf("no transport %d", (int)jstate);fflush(stdout);
/* Connect the ports. You can't do this before the client is
* activated, because we can't make connections to clients
* that aren't running. Note the confusing (but necessary)


+ 8
- 0
example-clients/thru_client.c~ View File

@@ -128,6 +128,14 @@ main ( int argc, char *argv[] )

jack_on_shutdown ( client, jack_shutdown, 0 );

jack_position_t pos;
jack_transport_state_t jstate;
jstate = jack_transport_query ( client, &pos );

printf("no transport %d", (int)jstate);


/* create two ports pairs*/
input_ports = ( jack_port_t** ) calloc ( 2, sizeof ( jack_port_t* ) );
output_ports = ( jack_port_t** ) calloc ( 2, sizeof ( jack_port_t* ) );


Loading…
Cancel
Save