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-02-27 02:38:55 +0400
committerRob Sykes <rob@rob-Ideapad-S205.(none)>2013-02-27 02:38:55 +0400
commita832a8fec41999defc619ccdbc2bc164f6a6363c (patch)
tree42d74d9384038391e4dc671106cf0a3b37dbeee4
parent9a38bc087ac71e3e2c8af862fd0dbbb829746b02 (diff)
allow anti_aliasing_pc to be > 100
-rw-r--r--src/rate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rate.h b/src/rate.h
index 483e187..fc2395c 100644
--- a/src/rate.h
+++ b/src/rate.h
@@ -412,7 +412,8 @@ static char const * rate_init(
assert(!bits || (15 <= bits && bits <= 33));
assert(0 <= phase && phase <= 100);
assert(53 <= bw_pc && bw_pc <= 100);
- assert(85 <= anti_aliasing_pc && anti_aliasing_pc <= 100);
+ assert(85 <= anti_aliasing_pc && anti_aliasing_pc <= 130);
+ assert(bw_pc < 200 - anti_aliasing_pc);
p->factor = factor;
if (bits) while (!n++) { /* Determine stages: */