diff --git a/tools/alsa_out.c b/tools/alsa_out.c index 491c735..94ebab6 100644 --- a/tools/alsa_out.c +++ b/tools/alsa_out.c @@ -296,7 +296,7 @@ int process (jack_nframes_t nframes, void *arg) { int rlen; int err; snd_pcm_sframes_t delay = target_delay; - + int i; snd_pcm_delay( alsa_handle, &delay ); @@ -311,6 +311,10 @@ int process (jack_nframes_t nframes, void *arg) { delay = target_delay; //current_resample_factor = (double) sample_rate / (double) jack_sample_rate; current_resample_factor = resample_mean; + offset_integral = - (resample_mean - 1.0) * catch_factor * catch_factor2; + //offset_integral = 0; + for( i=0; i