summaryrefslogtreecommitdiffstats
path: root/apps/settings.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-04-26 17:19:16 -0400
committerMichael Sevakis <jethead71@rockbox.org>2012-04-26 17:19:16 -0400
commit0842d7f7e1f123926bc7741c6ecfbcd631a65bea (patch)
tree3030e3bd5e1a322a8601379f2bd61aa71a50fc99 /apps/settings.c
parent97a535d83c0f057b190c7a82f95297696b25a0df (diff)
downloadrockbox-0842d7f7e1f123926bc7741c6ecfbcd631a65bea.tar.gz
rockbox-0842d7f7e1f123926bc7741c6ecfbcd631a65bea.tar.bz2
rockbox-0842d7f7e1f123926bc7741c6ecfbcd631a65bea.zip
Consolidate compressor settings into a struct.
Doing that makes things cleaner for later on. Change-Id: I4e279aa57ace16a348acc0fc09059592325ec95f
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 13913f2d85..a267f51765 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -781,9 +781,6 @@ void settings_apply(bool read_disk)
#ifdef HAVE_LCD_BITMAP
int rc;
#endif
-#if CONFIG_CODEC == SWCODEC
- int i;
-#endif
sound_settings_apply();
#ifdef HAVE_DISK_STORAGE
@@ -991,7 +988,7 @@ void settings_apply(bool read_disk)
/* Configure software equalizer, hardware eq is handled in audio_init() */
dsp_set_eq(global_settings.eq_enabled);
dsp_set_eq_precut(global_settings.eq_precut);
- for(i = 0; i < 5; i++) {
+ for(int i = 0; i < 5; i++) {
dsp_set_eq_coefs(i);
}
@@ -999,7 +996,7 @@ void settings_apply(bool read_disk)
#ifdef HAVE_PITCHSCREEN
dsp_timestretch_enable(global_settings.timestretch_enabled);
#endif
- dsp_set_compressor();
+ dsp_set_compressor(&global_settings.compressor_settings);
#endif
#ifdef HAVE_SPDIF_POWER