ref: e06776c324020ab2668729bacd0c8f04d37a5a04
parent: e500fe01f700b4e3c87d67e7e0e2a33e0161ec3c
author: robs <robs>
date: Fri Jan 16 01:20:51 EST 2009
add headroom value
--- a/src/rate.c
+++ b/src/rate.c
@@ -494,6 +494,9 @@
if (effp->in_signal.rate == out_rate)
return SOX_EFF_NULL;
+ if (effp->flow == 0 && effp->in_signal.mult)
+ *effp->in_signal.mult *= .705; /* 1/(2/sinc(pi/3)-1); see De Soras 4.1.2 */
+
effp->out_signal.channels = effp->in_signal.channels;
effp->out_signal.rate = out_rate;
rate_init(&p->rate, p->shared_ptr, effp->in_signal.rate / out_rate,