Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alexmarsev/soxr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Sykes <rob@rob-Ideapad-S205.(none)>2013-04-07 10:39:36 +0400
committerRob Sykes <rob@rob-Ideapad-S205.(none)>2013-04-07 10:39:36 +0400
commitfb8657b4469f864f9722d28bbb86c9b8a53446ac (patch)
treea30fd7c8c55b02b1bb2d755847ea70602f20ea8e
parentfe6ca521e2b022e10247a4250743abd690fba871 (diff)
fix ineffectual SOXR_MINIMUM_PHASE and SOXR_INTERMEDIATE_PHASE in soxr_quality_spec recipe
-rw-r--r--src/soxr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soxr.c b/src/soxr.c
index 93dd9c1..36b0251 100644
--- a/src/soxr.c
+++ b/src/soxr.c
@@ -85,7 +85,7 @@ soxr_quality_spec_t soxr_quality_spec(unsigned long recipe, unsigned long flags)
quality = 6;
else if (quality > 10)
quality = 0;
- p->phase_response = "\62\31\144"[(recipe & 0x30)>>8];
+ p->phase_response = "\62\31\144"[(recipe & 0x30) >> 4];
p->stopband_begin = 1;
p->precision = !quality? 0: quality < 3? 16 : quality < 8? 4 + quality * 4 : 55 - quality * 4;
rej = p->precision * linear_to_dB(2.);