diff options
author | Dan Everton <dan@iocaine.org> | 2006-03-28 21:19:30 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2006-03-28 21:19:30 +0000 |
commit | daebff8b5d2e4de9116e497781568d521f7ff1be (patch) | |
tree | a2a92100b17c7ff29021a7aa85202a8595cc003b /apps/dsp.c | |
parent | fc9bc173353341c4a4e6c4a93bb0045743f5b8d1 (diff) |
Update equalizer precut value as it's adjusted.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9332 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dsp.c')
-rw-r--r-- | apps/dsp.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/apps/dsp.c b/apps/dsp.c index b199d4e693..9cdc715109 100644 --- a/apps/dsp.c +++ b/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; |