forked from len0rd/rockbox
Update equalizer precut value as it's adjusted.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9332 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fc9bc17335
commit
daebff8b5d
4 changed files with 27 additions and 18 deletions
15
apps/dsp.c
15
apps/dsp.c
|
|
@ -591,15 +591,22 @@ static void apply_crossfeed(int32_t* src[], int count)
|
|||
#endif
|
||||
|
||||
/**
|
||||
* Use to enable the equalizer and set any pregain.
|
||||
* Use to enable the equalizer.
|
||||
*
|
||||
* @param enable true to enable the equalizer
|
||||
* @param precut to apply in decibels (multiplied by 10)
|
||||
*/
|
||||
void dsp_eq_set(bool enable, unsigned int precut)
|
||||
void dsp_set_eq(bool enable)
|
||||
{
|
||||
dsp->eq_enabled = enable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the amount to cut the audio before applying the equalizer.
|
||||
*
|
||||
* @param precut to apply in decibels (multiplied by 10)
|
||||
*/
|
||||
void dsp_set_eq_precut(int precut)
|
||||
{
|
||||
/* Needs to be in s8.23 format amplitude for apply_gain() */
|
||||
dsp->eq_precut = get_replaygain_int(precut * -10) >> 1;
|
||||
}
|
||||
|
|
@ -609,7 +616,7 @@ void dsp_eq_set(bool enable, unsigned int precut)
|
|||
*
|
||||
* @param band the equalizer band to synchronize
|
||||
*/
|
||||
void dsp_eq_update_filter_coefs(int band)
|
||||
void dsp_set_eq_coefs(int band)
|
||||
{
|
||||
const int *setting;
|
||||
long gain;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue