From 99a44ed3a361204eef22c86e20684be4fef309df Mon Sep 17 00:00:00 2001 From: Christoph Kuhr Date: Mon, 22 Oct 2018 21:37:48 +0200 Subject: [PATCH] debug client activation - transport sync? --- example-clients/thru_client.c | 13 ++++++++----- example-clients/thru_client.c~ | 8 ++++++++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/example-clients/thru_client.c b/example-clients/thru_client.c index 4d231801..ab271d70 100644 --- a/example-clients/thru_client.c +++ b/example-clients/thru_client.c @@ -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) diff --git a/example-clients/thru_client.c~ b/example-clients/thru_client.c~ index d47fbe15..4d231801 100644 --- a/example-clients/thru_client.c~ +++ b/example-clients/thru_client.c~ @@ -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* ) );