forked from len0rd/rockbox
Take 2 at 'Consolidate all fixed point math routines in one library' (FS#10400) by Jeffrey Goode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21664 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
427bf0b893
commit
802743a061
22 changed files with 754 additions and 755 deletions
|
|
@ -33,6 +33,8 @@
|
|||
#include "misc.h"
|
||||
#include "tdspeed.h"
|
||||
#include "buffer.h"
|
||||
#include "fixedpoint.h"
|
||||
#include "fracmul.h"
|
||||
|
||||
/* 16-bit samples are scaled based on these constants. The shift should be
|
||||
* no more than 15.
|
||||
|
|
@ -841,7 +843,7 @@ void dsp_set_crossfeed_cross_params(long lf_gain, long hf_gain, long cutoff)
|
|||
* crossfeed shelf filter and should be removed if crossfeed settings are
|
||||
* ever made incompatible for any other good reason.
|
||||
*/
|
||||
cutoff = DIV64(cutoff, get_replaygain_int(hf_gain*5), 24);
|
||||
cutoff = fp_div(cutoff, get_replaygain_int(hf_gain*5), 24);
|
||||
filter_shelf_coefs(cutoff, hf_gain, false, c);
|
||||
/* Scale coefs by LF gain and shift them to s0.31 format. We have no gains
|
||||
* over 1 and can do this safely
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue