shithub: sox

Download patch

ref: 37cbdc63bc16efdd9075ab3ceb161d6cab7fc0bb
parent: aadab41d41ce65a7a8de0c7b58356366957dc054
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Aug 17 16:44:11 EDT 2023

remove debug prints

--- a/src/rate.c
+++ b/src/rate.c
@@ -222,28 +222,20 @@
   if (!f->num_taps) {
     int num_taps = 0, dft_length, i;
     int k = phase == 50 && lsx_is_power_of_2(L) && Fn == L? L << 1 : 4;
-fprint(2, "#0\n");
     double * h = lsx_design_lpf(Fp, Fs, Fn, att, &num_taps, -k, -1.);
-fprint(2, "#1\n");
     if (phase != 50)
       lsx_fir_to_phase(&h, &num_taps, &f->post_peak, phase);
     else f->post_peak = num_taps / 2;
-fprint(2, "#A\n");
 
     dft_length = lsx_set_dft_length(num_taps);
-fprint(2, "#B\n");
     f->coefs = calloc(dft_length, sizeof(*f->coefs));
-fprint(2, "#C\n");
     for (i = 0; i < num_taps; ++i)
       f->coefs[(i + dft_length - num_taps + 1) & (dft_length - 1)]
         = h[i] / dft_length * 2 * L;
-fprint(2, "#D\n");
     free(h);
     f->num_taps = num_taps;
     f->dft_length = dft_length;
-fprint(2, "#E\n");
     lsx_safe_rdft(dft_length, 1, f->coefs);
-fprint(2, "#F\n");
     lsx_debug("fir_len=%i dft_length=%i Fp=%g Fs=%g Fn=%g att=%g %i/%i",
         num_taps, dft_length, Fp, Fs, Fn, att, L, M);
   }
@@ -411,9 +403,7 @@
       phases = !rational? (1 << phase_bits) : arbL;
       if (!f->interp[0].scalar) {
         int phases0 = max(phases, 19), n0 = 0;
-fprint(2, "#2\n");
         lsx_design_lpf(Fp, Fs, -Fn, attArb, &n0, phases0, f->beta);
-fprint(2, "#3\n");
         num_coefs = n0 / phases0 + 1, num_coefs += num_coefs & !preM;
       }
       if ((num_coefs & 1) && rational && (arbL & 1))
@@ -426,10 +416,8 @@
 
     if (!arb_stage.shared->poly_fir_coefs) {
       int num_taps = num_coefs * phases - 1;
-fprint(2, "#4\n");
       raw_coef_t * coefs = lsx_design_lpf(
           Fp, Fs, Fn, attArb, &num_taps, phases, f->beta);
-fprint(2, "#5\n");
       arb_stage.shared->poly_fir_coefs = prepare_coefs(
           coefs, num_coefs, phases, order, 1);
       lsx_debug("fir_len=%i phases=%i coef_interp=%i size=%s",