summaryrefslogtreecommitdiff
path: root/apps/menus/sound_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/sound_menu.c')
-rw-r--r--apps/menus/sound_menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/menus/sound_menu.c b/apps/menus/sound_menu.c
index e9715534c9..9fc10f88b8 100644
--- a/apps/menus/sound_menu.c
+++ b/apps/menus/sound_menu.c
@@ -104,6 +104,7 @@ MENUITEM_SETTING(depth_3d, &global_settings.depth_3d, NULL);
104 &crossfeed, &crossfeed_direct_gain, &crossfeed_cross_gain, 104 &crossfeed, &crossfeed_direct_gain, &crossfeed_cross_gain,
105 &crossfeed_hf_attenuation, &crossfeed_hf_cutoff); 105 &crossfeed_hf_attenuation, &crossfeed_hf_cutoff);
106 106
107#ifdef HAVE_PIUTCHSCREEN
107static int timestretch_callback(int action,const struct menu_item_ex *this_item) 108static int timestretch_callback(int action,const struct menu_item_ex *this_item)
108{ 109{
109 switch (action) 110 switch (action)
@@ -118,6 +119,8 @@ static int timestretch_callback(int action,const struct menu_item_ex *this_item)
118} 119}
119 MENUITEM_SETTING(timestretch_enabled, 120 MENUITEM_SETTING(timestretch_enabled,
120 &global_settings.timestretch_enabled, timestretch_callback); 121 &global_settings.timestretch_enabled, timestretch_callback);
122#endif
123
121 MENUITEM_SETTING(dithering_enabled, 124 MENUITEM_SETTING(dithering_enabled,
122 &global_settings.dithering_enabled, lowlatency_callback); 125 &global_settings.dithering_enabled, lowlatency_callback);
123 126
@@ -178,7 +181,9 @@ MAKE_MENU(sound_settings, ID2P(LANG_SOUND_SETTINGS), NULL, Icon_Audio,
178#endif 181#endif
179#if CONFIG_CODEC == SWCODEC 182#if CONFIG_CODEC == SWCODEC
180 ,&crossfeed_menu, &equalizer_menu, &dithering_enabled 183 ,&crossfeed_menu, &equalizer_menu, &dithering_enabled
184#ifdef HAVE_PITCHSCREEN
181 ,&timestretch_enabled 185 ,&timestretch_enabled
186#endif
182 ,&compressor_menu 187 ,&compressor_menu
183#endif 188#endif
184#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) 189#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)