diff --git a/cava.c b/cava.c index c017af6..2170313 100644 --- a/cava.c +++ b/cava.c @@ -422,7 +422,7 @@ printf("\033[%dm",bgcol); for (i=0;i(rate*3)/M)//if no signal for 3 sec, go to sleep mode - { - if(debug==1)printf("no sound detected for 5 sec, going to sleep mode\n"); - for (i=0;i<200;i++)flast[i]=0; //zeroing memory + if(debug==1)printf("no sound detected for 3 sec, going to sleep mode\n"); + //for (i=0;i<200;i++)flast[i]=0; //zeroing memory no more nesceseary after faloff on pauses //pthread_cancel(thr_id);// this didnt work to well, killing sound thread usleep(1*1000000);//wait 1 sec, then check sound again. continue; - } - if(debug==1)printf("no sound detected, trying again\n"); - sleep++; - continue; } //**DRAWING**// -- put in function file maybe?