summaryrefslogtreecommitdiff
path: root/apps/settings_menu.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-06-09 09:47:00 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-06-09 09:47:00 +0000
commit6271b2b9104e060f8e25c780f3cbb010cbcba827 (patch)
tree4c52d92b49946083e5a08c5c20e202dd767cda03 /apps/settings_menu.c
parent614f0a333a6263def7e6cd053abfc222dae2ced5 (diff)
downloadrockbox-6271b2b9104e060f8e25c780f3cbb010cbcba827.zip
rockbox-6271b2b9104e060f8e25c780f3cbb010cbcba827.tar.gz
rockbox-6271b2b9104e060f8e25c780f3cbb010cbcba827.tar.bz2
rockbox-6271b2b9104e060f8e25c780f3cbb010cbcba827.tar.xz
Added Crossfade setting for iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6636 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r--apps/settings_menu.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c
index e400261..9826058 100644
--- a/apps/settings_menu.c
+++ b/apps/settings_menu.c
@@ -60,6 +60,10 @@ void dac_line_in(bool enable);
#include "lcd-remote.h"
#endif
+#if CONFIG_HWCODEC == MASNONE
+#include "pcm_playback.h"
+#endif
+
#ifdef HAVE_CHARGING
static bool car_adapter_mode(void)
{
@@ -1055,6 +1059,17 @@ static bool id3_order(void)
mpeg_id3_options);
}
+#if CONFIG_HWCODEC == MASNONE
+static bool crossfade(void)
+{
+ bool rc = set_bool( str(LANG_CROSSFADE), &global_settings.crossfade );
+#ifndef SIMULATOR
+ pcm_crossfade_enable(global_settings.crossfade);
+#endif
+ return rc;
+}
+#endif
+
static bool playback_settings_menu(void)
{
int m;
@@ -1068,6 +1083,9 @@ static bool playback_settings_menu(void)
{ ID2P(LANG_WIND_MENU), ff_rewind_settings_menu },
{ ID2P(LANG_MP3BUFFER_MARGIN), buffer_margin },
{ ID2P(LANG_FADE_ON_STOP), set_fade_on_stop },
+#if CONFIG_HWCODEC == MASNONE
+ { ID2P(LANG_CROSSFADE), crossfade },
+#endif
{ ID2P(LANG_ID3_ORDER), id3_order },
};