cadence-session-start: Remove all qt stuff appart QSettings
[cadence-nykeej.git] / jack_capture-freewheel-fix.path
blob4363fab9b191695cfbfbe4aaf477fdeec0316125
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;
6  
7 +volatile int freewheel_mode=0;
9  
10  /* Disk thread */
11  #if HAVE_LAME
12 @@ -1505,7 +1507,13 @@ static void stop_connection_thread(void)
13  }
15  static int graphordercallback(void *arg){
16 -  wake_up_connection_thread();
17 +  if (!freewheel_mode)
18 +    wake_up_connection_thread();
19 +  return 0;
22 +static int freewheelcallback(int starting, void *arg){
23 +  freewheel_mode = starting;
24    return 0;
25  }
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");
35        exit(-2);