summaryrefslogtreecommitdiff
path: root/apps/menus/playback_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/playback_menu.c')
-rw-r--r--apps/menus/playback_menu.c34
1 files changed, 27 insertions, 7 deletions
diff --git a/apps/menus/playback_menu.c b/apps/menus/playback_menu.c
index 23f1cb55bf..bf770c0f11 100644
--- a/apps/menus/playback_menu.c
+++ b/apps/menus/playback_menu.c
@@ -45,9 +45,12 @@
45 45
46 46
47#if (CONFIG_CODEC == SWCODEC) && defined(HAVE_CROSSFADE) 47#if (CONFIG_CODEC == SWCODEC) && defined(HAVE_CROSSFADE)
48static int setcrossfadeonexit_callback(int action,const struct menu_item_ex *this_item) 48static int setcrossfadeonexit_callback(int action,
49 const struct menu_item_ex *this_item,
50 struct gui_synclist *this_list)
49{ 51{
50 (void)this_item; 52 (void)this_item;
53 (void)this_list;
51 switch (action) 54 switch (action)
52 { 55 {
53 case ACTION_EXIT_MENUITEM: /* on exit */ 56 case ACTION_EXIT_MENUITEM: /* on exit */
@@ -61,7 +64,9 @@ static int setcrossfadeonexit_callback(int action,const struct menu_item_ex *thi
61 64
62/***********************************/ 65/***********************************/
63/* PLAYBACK MENU */ 66/* PLAYBACK MENU */
64static int playback_callback(int action,const struct menu_item_ex *this_item); 67static int playback_callback(int action,
68 const struct menu_item_ex *this_item,
69 struct gui_synclist *this_list);
65 70
66MENUITEM_SETTING(shuffle_item, &global_settings.playlist_shuffle, playback_callback); 71MENUITEM_SETTING(shuffle_item, &global_settings.playlist_shuffle, playback_callback);
67MENUITEM_SETTING(repeat_mode, &global_settings.repeat_mode, playback_callback); 72MENUITEM_SETTING(repeat_mode, &global_settings.repeat_mode, playback_callback);
@@ -73,9 +78,12 @@ MAKE_MENU(ff_rewind_settings_menu, ID2P(LANG_WIND_MENU), 0, Icon_NOICON,
73 &ff_rewind_min_step, &ff_rewind_accel); 78 &ff_rewind_min_step, &ff_rewind_accel);
74#ifdef HAVE_DISK_STORAGE 79#ifdef HAVE_DISK_STORAGE
75#if CONFIG_CODEC == SWCODEC 80#if CONFIG_CODEC == SWCODEC
76static int buffermargin_callback(int action,const struct menu_item_ex *this_item) 81static int buffermargin_callback(int action,
82 const struct menu_item_ex *this_item,
83 struct gui_synclist *this_list)
77{ 84{
78 (void)this_item; 85 (void)this_item;
86 (void)this_list;
79 switch (action) 87 switch (action)
80 { 88 {
81 case ACTION_EXIT_MENUITEM: /* on exit */ 89 case ACTION_EXIT_MENUITEM: /* on exit */
@@ -115,9 +123,12 @@ MAKE_MENU(crossfade_settings_menu,ID2P(LANG_CROSSFADE),0, Icon_NOICON,
115 123
116/* replay gain submenu */ 124/* replay gain submenu */
117 125
118static int replaygain_callback(int action,const struct menu_item_ex *this_item) 126static int replaygain_callback(int action,
127 const struct menu_item_ex *this_item,
128 struct gui_synclist *this_list)
119{ 129{
120 (void)this_item; 130 (void)this_item;
131 (void)this_list;
121 switch (action) 132 switch (action)
122 { 133 {
123 case ACTION_EXIT_MENUITEM: /* on exit */ 134 case ACTION_EXIT_MENUITEM: /* on exit */
@@ -147,9 +158,12 @@ MENUITEM_SETTING(spdif_enable, &global_settings.spdif_enable, NULL);
147MENUITEM_SETTING(next_folder, &global_settings.next_folder, NULL); 158MENUITEM_SETTING(next_folder, &global_settings.next_folder, NULL);
148MENUITEM_SETTING(constrain_next_folder, 159MENUITEM_SETTING(constrain_next_folder,
149 &global_settings.constrain_next_folder, NULL); 160 &global_settings.constrain_next_folder, NULL);
150static int audioscrobbler_callback(int action,const struct menu_item_ex *this_item) 161static int audioscrobbler_callback(int action,
162 const struct menu_item_ex *this_item,
163 struct gui_synclist *this_list)
151{ 164{
152 (void)this_item; 165 (void)this_item;
166 (void)this_list;
153 switch (action) 167 switch (action)
154 { 168 {
155 case ACTION_EXIT_MENUITEM: /* on exit */ 169 case ACTION_EXIT_MENUITEM: /* on exit */
@@ -165,9 +179,12 @@ static int audioscrobbler_callback(int action,const struct menu_item_ex *this_it
165MENUITEM_SETTING(audioscrobbler, &global_settings.audioscrobbler, audioscrobbler_callback); 179MENUITEM_SETTING(audioscrobbler, &global_settings.audioscrobbler, audioscrobbler_callback);
166 180
167 181
168static int cuesheet_callback(int action,const struct menu_item_ex *this_item) 182static int cuesheet_callback(int action,
183 const struct menu_item_ex *this_item,
184 struct gui_synclist *this_list)
169{ 185{
170 (void)this_item; 186 (void)this_item;
187 (void)this_list;
171 switch (action) 188 switch (action)
172 { 189 {
173 case ACTION_EXIT_MENUITEM: /* on exit */ 190 case ACTION_EXIT_MENUITEM: /* on exit */
@@ -236,8 +253,11 @@ MAKE_MENU(playback_settings,ID2P(LANG_PLAYBACK),0,
236#endif 253#endif
237 ); 254 );
238 255
239static int playback_callback(int action,const struct menu_item_ex *this_item) 256static int playback_callback(int action,
257 const struct menu_item_ex *this_item,
258 struct gui_synclist *this_list)
240{ 259{
260 (void)this_list;
241 static bool old_shuffle = false; 261 static bool old_shuffle = false;
242 static int old_repeat = 0; 262 static int old_repeat = 0;
243 switch (action) 263 switch (action)