summaryrefslogtreecommitdiffstats
path: root/apps/menus
diff options
context:
space:
mode:
authorSean Bartell <wingedtachikoma@gmail.com>2011-08-21 17:18:09 -0400
committerNils Wallménius <nils@rockbox.org>2012-04-27 16:33:27 +0200
commita6dea9e13d6e53dacef183bd3cbbb363c2fa2073 (patch)
tree8a0c3b160791698a2a5dcdd7f9226876685243ec /apps/menus
parent79a667d3e247f0bf0fdbfb96b57f45d0403ca21c (diff)
downloadrockbox-a6dea9e13d6e53dacef183bd3cbbb363c2fa2073.tar.gz
rockbox-a6dea9e13d6e53dacef183bd3cbbb363c2fa2073.tar.bz2
rockbox-a6dea9e13d6e53dacef183bd3cbbb363c2fa2073.zip
rbcodec refactoring: dsp_set_eq_coefs
dsp_set_eq_coefs now has parameters for the band settings, so it doesn't need to access global_settings. Change-Id: I29ac19fc353b15a79cb25f0e45132aef0881e4c9 Reviewed-on: http://gerrit.rockbox.org/138 Reviewed-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/eq_menu.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c
index d920c93ca3..2cfb80f76a 100644
--- a/apps/menus/eq_menu.c
+++ b/apps/menus/eq_menu.c
@@ -70,12 +70,13 @@ const char* eq_precut_format(char* buffer, size_t buffer_size, int value, const
*/
static void eq_apply(void)
{
- int i;
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_set_eq_coefs(i);
+ for(int i = 0; i < 5; i++) {
+ dsp_set_eq_coefs(i, global_settings.eq_band_settings[i].cutoff,
+ global_settings.eq_band_settings[i].q,
+ global_settings.eq_band_settings[i].gain);
}
}
@@ -578,7 +579,10 @@ bool eq_menu_graphical(void)
/* Update the filter if the user changed something */
if (has_changed) {
- dsp_set_eq_coefs(current_band);
+ dsp_set_eq_coefs(current_band,
+ global_settings.eq_band_settings[current_band].cutoff,
+ global_settings.eq_band_settings[current_band].q,
+ global_settings.eq_band_settings[current_band].gain);
has_changed = false;
}
}