Allow up to 99.999% bandwidth for massive numbers of taps. Con Kolivas diff --git a/src/fft4g.c b/src/fft4g.c index 38a8bcc0..e751ebb5 100644 --- a/src/fft4g.c +++ b/src/fft4g.c @@ -708,7 +708,7 @@ static void makect(int nc, int *ip, double *c) static void bitrv2(int n, int *ip0, double *a) { - int j, j1, k, k1, l, m, m2, ip[256]; + int j, j1, k, k1, l, m, m2, ip[1024]; double xr, xi, yr, yi; (void)ip0; @@ -809,7 +809,7 @@ static void bitrv2(int n, int *ip0, double *a) static void bitrv2conj(int n, int *ip0, double *a) { - int j, j1, k, k1, l, m, m2, ip[256]; + int j, j1, k, k1, l, m, m2, ip[1024]; double xr, xi, yr, yi; (void)ip0; diff --git a/src/rate.c b/src/rate.c index 90661117..a4d20ffa 100644 --- a/src/rate.c +++ b/src/rate.c @@ -534,7 +534,7 @@ static int create(sox_effect_t * effp, int argc, char **argv) p->coef_interp = quality = -1; p->rolloff = rolloff_small; p->phase = 50; - p->max_coefs_size = 400; + p->max_coefs_size = INT_MAX; p->shared_ptr = &p->shared; while ((c = lsx_getopt(&optstate)) != -1) switch (c) { @@ -544,7 +544,7 @@ static int create(sox_effect_t * effp, int argc, char **argv) GETOPT_NUMERIC(optstate, 'B', bw_0dB_pc, 53, 99.5) GETOPT_NUMERIC(optstate, 'A', anti_aliasing_pc, 85, 100) GETOPT_NUMERIC(optstate, 'd', bit_depth, 15, 33) - GETOPT_LOCAL_NUMERIC(optstate, 'b', bw_3dB_pc, 74, 99.7) + GETOPT_LOCAL_NUMERIC(optstate, 'b', bw_3dB_pc, 74, 99.999) GETOPT_LOCAL_NUMERIC(optstate, 'R', rej, 90, 200) GETOPT_LOCAL_NUMERIC(optstate, 'Q', quality, 0, 7) case 'M': p->phase = 0; break;