1 --- jack-capture-0.9.57.orig/jack_capture.c
2 +++ jack-capture-0.9.57/jack_capture.c
3 @@ -129,6 +129,8 @@ static bool jack_has_been_shut_down=fals
4 static int64_t unreported_overruns=0;
5 static int total_overruns=0;
7 +volatile int freewheel_mode=0;
12 @@ -1505,7 +1507,13 @@ static void stop_connection_thread(void)
15 static int graphordercallback(void *arg){
16 - wake_up_connection_thread();
17 + if (!freewheel_mode)
18 + wake_up_connection_thread();
22 +static int freewheelcallback(int starting, void *arg){
23 + freewheel_mode = starting;
27 @@ -1825,6 +1833,8 @@ void init_various(void){
29 jack_set_graph_order_callback(client,graphordercallback,NULL);
31 + jack_set_freewheel_callback(client,freewheelcallback,NULL);
33 if (jack_activate(client)) {
34 fprintf (stderr,"\nCan not activate client");