From daebff8b5d2e4de9116e497781568d521f7ff1be Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Tue, 28 Mar 2006 21:19:30 +0000 Subject: Update equalizer precut value as it's adjusted. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9332 a1c6a512-1295-4272-9138-f99709370657 --- apps/dsp.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'apps/dsp.c') diff --git a/apps/dsp.c b/apps/dsp.c index b199d4e..9cdc715 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; -- cgit v1.1