forked from len0rd/rockbox
Wrap filter_bishelf_coefs with HAVE_SW_TONE_CONTROLS to not waste bytes on targets that don't use it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12490 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a7fabf0741
commit
deb69d280d
1 changed files with 2 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ void filter_shelf_coefs(unsigned long cutoff, long ad, long an, int32_t *c)
|
|||
c[2] = -DIV64(a1, a0, 31);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SW_TONE_CONTROLS
|
||||
/**
|
||||
* Calculate second order section filter consisting of one low-shelf and one
|
||||
* high-shelf section.
|
||||
|
|
@ -198,6 +199,7 @@ void filter_bishelf_coefs(unsigned long cutoff_low, unsigned long cutoff_high,
|
|||
*c++ = -FRACMUL_SHL(FRACMUL(a0, a3) + FRACMUL(a1, a2), rcp_a0, 5);
|
||||
*c++ = -FRACMUL_SHL(FRACMUL(a1, a3), rcp_a0, 5);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Coef calculation taken from Audio-EQ-Cookbook.txt by Robert Bristow-Johnson.
|
||||
* Slightly faster calculation can be done by deriving forms which use tan()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue