diff options
author | Rob Sykes <rob@rob-Ideapad-S205.(none)> | 2013-04-07 10:39:36 +0400 |
---|---|---|
committer | Rob Sykes <rob@rob-Ideapad-S205.(none)> | 2013-04-07 10:39:36 +0400 |
commit | fb8657b4469f864f9722d28bbb86c9b8a53446ac (patch) | |
tree | a30fd7c8c55b02b1bb2d755847ea70602f20ea8e | |
parent | fe6ca521e2b022e10247a4250743abd690fba871 (diff) |
fix ineffectual SOXR_MINIMUM_PHASE and SOXR_INTERMEDIATE_PHASE in soxr_quality_spec recipe
-rw-r--r-- | src/soxr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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.); |