Lines Matching refs:totsamp
146 static unsigned long totsamp;
262 totsamp = 0;
322 cursamples = batchsamples > (long)(sampleWindow-totsamp) ? (long)(sampleWindow - totsamp) : batchsamples;
334 filter ( curleft , lstep + totsamp, cursamples, AYule[freqindex], BYule[freqindex], YULE_ORDER );
335 filter ( curright, rstep + totsamp, cursamples, AYule[freqindex], BYule[freqindex], YULE_ORDER );
337 filter ( lstep + totsamp, lout + totsamp, cursamples, AButter[freqindex], BButter[freqindex], BUTTER_ORDER );
338 filter ( rstep + totsamp, rout + totsamp, cursamples, AButter[freqindex], BButter[freqindex], BUTTER_ORDER );
341 lsum += lout [totsamp+i] * lout [totsamp+i];
342 rsum += rout [totsamp+i] * rout [totsamp+i];
347 totsamp += cursamples;
348 if ( totsamp == sampleWindow ) { /* Get the Root Mean Square (RMS) for this set of samples */
349 double val = STEPS_per_dB * 10. * log10 ( (lsum+rsum) / totsamp * 0.5 + 1.e-37 );
355 memmove ( loutbuf , loutbuf + totsamp, MAX_ORDER * sizeof(Float_t) );
356 memmove ( routbuf , routbuf + totsamp, MAX_ORDER * sizeof(Float_t) );
357 memmove ( lstepbuf, lstepbuf + totsamp, MAX_ORDER * sizeof(Float_t) );
358 memmove ( rstepbuf, rstepbuf + totsamp, MAX_ORDER * sizeof(Float_t) );
359 totsamp = 0;
361 if ( totsamp > sampleWindow ) /* somehow I really screwed up: Error in programming! Contact author about totsamp > sampleWindow */
418 totsamp = 0;