summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2005-11-14 21:56:56 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2005-11-14 21:56:56 +0000
commite13fad3b4bb6eb470149ddafb2833837d6c076e9 (patch)
tree127110e45819ac342189c91896caaee0c7682336 /apps/settings.c
parentf5aebf78487e94cc39277bc5a7f5277d5ce3303e (diff)
downloadrockbox-e13fad3b4bb6eb470149ddafb2833837d6c076e9.zip
rockbox-e13fad3b4bb6eb470149ddafb2833837d6c076e9.tar.gz
rockbox-e13fad3b4bb6eb470149ddafb2833837d6c076e9.tar.bz2
rockbox-e13fad3b4bb6eb470149ddafb2833837d6c076e9.tar.xz
add crossfeed dsp effect. Makes some music more enjoyable with headphones.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7884 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 742b112..f483b8d 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -85,7 +85,7 @@ const char rec_base_directory[] = REC_BASE_DIR;
#include "dsp.h"
#endif
-#define CONFIG_BLOCK_VERSION 30
+#define CONFIG_BLOCK_VERSION 31
#define CONFIG_BLOCK_SIZE 512
#define RTC_BLOCK_SIZE 44
@@ -444,6 +444,7 @@ static const struct bit_entry hd_bits[] =
{4, S_O(crossfade_fade_in_duration), 0, "crossfade fade in duration", NULL},
{4, S_O(crossfade_fade_out_duration), 0, "crossfade fade out duration", NULL},
{1, S_O(crossfade_fade_out_mixmode), 0, "crossfade fade out mode", "crossfade,mix"},
+ {1, S_O(crossfeed), false, "crossfeed", off_on },
#endif
#ifdef HAVE_DIRCACHE
{1, S_O(dircache), false, "dircache", off_on },
@@ -912,6 +913,7 @@ void settings_apply(void)
#if CONFIG_CODEC == SWCODEC
audio_set_crossfade(global_settings.crossfade);
dsp_set_replaygain(true);
+ dsp_set_crossfeed(global_settings.crossfeed);
#endif
#ifdef HAVE_SPDIF_POWER