blob: c55d81b163e85c468f68217accd267f4a733b750 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From fb8657b4469f864f9722d28bbb86c9b8a53446ac Mon Sep 17 00:00:00 2001
From: Rob Sykes <rob@rob-Ideapad-S205.(none)>
Date: Sun, 7 Apr 2013 07:39:36 +0100
Subject: [PATCH 1/1] fix ineffectual SOXR_MINIMUM_PHASE and
SOXR_INTERMEDIATE_PHASE in soxr_quality_spec recipe
---
src/soxr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.);
--
2.3.5
|