From fa17daf77cc9bc068e3163bd473fb215853369de Mon Sep 17 00:00:00 2001 From: torben Date: Sun, 15 Feb 2009 07:20:05 +0000 Subject: [PATCH] [alsa-out] another fix for alsa out. now it really should be fixed. haha... i thought that too often. but resampling is really going down to almost zero now. git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3313 0c269be4-1314-0410-8aa9-9f06e86f4224 --- tools/alsa_out.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/alsa_out.c b/tools/alsa_out.c index 1903cec..584d6a3 100644 --- a/tools/alsa_out.c +++ b/tools/alsa_out.c @@ -312,9 +312,9 @@ int process (jack_nframes_t nframes, void *arg) { //if( periods_until_stability ) { if( 1 ) { - double resamp_rate = (double)jack_sample_rate / (double)sample_rate; // == nframes / alsa_samples. - double request_samples = nframes / resamp_rate; //== alsa_samples; - //double request_samples = nframes * current_resample_factor; //== alsa_samples; + //double resamp_rate = (double)sample_rate / (double)jack_sample_rate; // == nframes / alsa_samples. + //double request_samples = nframes / resamp_rate; //== alsa_samples; + double request_samples = nframes * current_resample_factor; //== alsa_samples; offset = delay - target_delay;