diff options
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index e4002615dd..9826058202 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c | |||
@@ -60,6 +60,10 @@ void dac_line_in(bool enable); | |||
60 | #include "lcd-remote.h" | 60 | #include "lcd-remote.h" |
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | #if CONFIG_HWCODEC == MASNONE | ||
64 | #include "pcm_playback.h" | ||
65 | #endif | ||
66 | |||
63 | #ifdef HAVE_CHARGING | 67 | #ifdef HAVE_CHARGING |
64 | static bool car_adapter_mode(void) | 68 | static bool car_adapter_mode(void) |
65 | { | 69 | { |
@@ -1055,6 +1059,17 @@ static bool id3_order(void) | |||
1055 | mpeg_id3_options); | 1059 | mpeg_id3_options); |
1056 | } | 1060 | } |
1057 | 1061 | ||
1062 | #if CONFIG_HWCODEC == MASNONE | ||
1063 | static bool crossfade(void) | ||
1064 | { | ||
1065 | bool rc = set_bool( str(LANG_CROSSFADE), &global_settings.crossfade ); | ||
1066 | #ifndef SIMULATOR | ||
1067 | pcm_crossfade_enable(global_settings.crossfade); | ||
1068 | #endif | ||
1069 | return rc; | ||
1070 | } | ||
1071 | #endif | ||
1072 | |||
1058 | static bool playback_settings_menu(void) | 1073 | static bool playback_settings_menu(void) |
1059 | { | 1074 | { |
1060 | int m; | 1075 | int m; |
@@ -1068,6 +1083,9 @@ static bool playback_settings_menu(void) | |||
1068 | { ID2P(LANG_WIND_MENU), ff_rewind_settings_menu }, | 1083 | { ID2P(LANG_WIND_MENU), ff_rewind_settings_menu }, |
1069 | { ID2P(LANG_MP3BUFFER_MARGIN), buffer_margin }, | 1084 | { ID2P(LANG_MP3BUFFER_MARGIN), buffer_margin }, |
1070 | { ID2P(LANG_FADE_ON_STOP), set_fade_on_stop }, | 1085 | { ID2P(LANG_FADE_ON_STOP), set_fade_on_stop }, |
1086 | #if CONFIG_HWCODEC == MASNONE | ||
1087 | { ID2P(LANG_CROSSFADE), crossfade }, | ||
1088 | #endif | ||
1071 | { ID2P(LANG_ID3_ORDER), id3_order }, | 1089 | { ID2P(LANG_ID3_ORDER), id3_order }, |
1072 | }; | 1090 | }; |
1073 | 1091 | ||