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/eq_menu.c | |
| parent | fc9bc173353341c4a4e6c4a93bb0045743f5b8d1 (diff) | |
| download | rockbox-daebff8b5d2e4de9116e497781568d521f7ff1be.zip rockbox-daebff8b5d2e4de9116e497781568d521f7ff1be.tar.gz rockbox-daebff8b5d2e4de9116e497781568d521f7ff1be.tar.bz2 rockbox-daebff8b5d2e4de9116e497781568d521f7ff1be.tar.xz | |
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/eq_menu.c')
| -rw-r--r-- | apps/eq_menu.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/eq_menu.c b/apps/eq_menu.c index 61d38f4..2e04a88 100644 --- a/apps/eq_menu.c +++ b/apps/eq_menu.c @@ -147,11 +147,13 @@ static bool eq_enabled(void) bool result = set_bool(str(LANG_EQUALIZER_ENABLED), &global_settings.eq_enabled); - dsp_eq_set(global_settings.eq_enabled, global_settings.eq_precut); + dsp_set_eq(global_settings.eq_enabled); + + dsp_set_eq_precut(global_settings.eq_precut); /* Update all bands */ for(i = 0; i < 5; i++) { - dsp_eq_update_filter_coefs(i); + dsp_set_eq_coefs(i); } return result; @@ -160,11 +162,9 @@ static bool eq_enabled(void) static bool eq_precut(void) { bool result = set_int(str(LANG_EQUALIZER_PRECUT), str(LANG_UNIT_DB), - UNIT_DB, &global_settings.eq_precut, NULL, 5, 0, 240, + UNIT_DB, &global_settings.eq_precut, dsp_set_eq_precut, 5, 0, 240, eq_precut_format); - dsp_eq_set(global_settings.eq_enabled, global_settings.eq_precut); - return result; } @@ -178,7 +178,7 @@ static bool eq_set_band ## band ## _center(void) \ bool result = set_int(str(LANG_EQUALIZER_BAND_CENTER), "Hertz", \ UNIT_HERTZ, &global_settings.eq_band ## band ## _cutoff, NULL, \ EQ_CUTOFF_STEP, EQ_CUTOFF_MIN, EQ_CUTOFF_MAX, NULL); \ - dsp_eq_update_filter_coefs(band); \ + dsp_set_eq_coefs(band); \ return result; \ } @@ -188,7 +188,7 @@ static bool eq_set_band ## band ## _cutoff(void) \ bool result = set_int(str(LANG_EQUALIZER_BAND_CUTOFF), "Hertz", \ UNIT_HERTZ, &global_settings.eq_band ## band ## _cutoff, NULL, \ EQ_CUTOFF_STEP, EQ_CUTOFF_MIN, EQ_CUTOFF_MAX, NULL); \ - dsp_eq_update_filter_coefs(band); \ + dsp_set_eq_coefs(band); \ return result; \ } @@ -198,7 +198,7 @@ static bool eq_set_band ## band ## _q(void) \ bool result = set_int(str(LANG_EQUALIZER_BAND_Q), "Q", UNIT_INT, \ &global_settings.eq_band ## band ## _q, NULL, \ EQ_Q_STEP, EQ_Q_MIN, EQ_Q_MAX, eq_q_format); \ - dsp_eq_update_filter_coefs(band); \ + dsp_set_eq_coefs(band); \ return result; \ } @@ -208,7 +208,7 @@ static bool eq_set_band ## band ## _gain(void) \ bool result = set_int("Band " #band, str(LANG_UNIT_DB), UNIT_DB, \ &global_settings.eq_band ## band ## _gain, NULL, \ EQ_GAIN_STEP, EQ_GAIN_MIN, EQ_GAIN_MAX, eq_gain_format); \ - dsp_eq_update_filter_coefs(band); \ + dsp_set_eq_coefs(band); \ return result; \ } @@ -693,7 +693,7 @@ bool eq_menu_graphical(void) /* Update the filter if the user changed something */ if (has_changed) { - dsp_eq_update_filter_coefs(current_band); + dsp_set_eq_coefs(current_band); has_changed = false; } } |