···778778 return gui_synclist_do_button(lists, action, wrap);
779779}
780780781781-bool gui_synclist_item_is_onscreen(struct gui_synclist *lists,
782782- enum screen_type screen, int item)
783783-{
784784- int nb_lines = list_get_nb_lines(lists, screen);
785785- return (unsigned)(item - lists->start_item[screen]) < (unsigned) nb_lines;
786786-}
787787-788781/* Simple use list implementation */
789782static int simplelist_line_count = 0;
790783static char simplelist_text[SIMPLELIST_MAX_LINES][SIMPLELIST_MAX_LINELENGTH];
-2
apps/gui/list.h
···165165 enum themable_icons icon);
166166extern void gui_synclist_hide_selection_marker(struct gui_synclist *lists,
167167 bool hide);
168168-extern bool gui_synclist_item_is_onscreen(struct gui_synclist *lists,
169169- enum screen_type screen, int item);
170168/*
171169 * Do the action implied by the given button,
172170 * returns true if the action was handled.
···250250 [REC_FORMAT_PCM_WAV] = AFMT_PCM_WAV,
251251};
252252253253+#if 0 /* Currently unused, left for reference and future use */
253254/* get AFMT_* corresponding REC_FORMAT_* */
254255const int afmt_rec_format[AFMT_NUM_CODECS] =
255256{
···261262 [AFMT_WAVPACK] = REC_FORMAT_WAVPACK,
262263 [AFMT_PCM_WAV] = REC_FORMAT_PCM_WAV,
263264};
265265+#endif
264266#endif /* CONFIG_CODEC == SWCODEC && defined (HAVE_RECORDING) */
265267266268#if CONFIG_CODEC == SWCODEC
+1-1
apps/metadata.h
···149149/* get REC_FORMAT_* corresponding AFMT_* */
150150extern const int rec_format_afmt[REC_NUM_FORMATS];
151151/* get AFMT_* corresponding REC_FORMAT_* */
152152-extern const int afmt_rec_format[AFMT_NUM_CODECS];
152152+/* unused: extern const int afmt_rec_format[AFMT_NUM_CODECS]; */
153153154154#define AFMT_ENTRY(label, root_fname, enc_root_fname, func, ext_list) \
155155 { label, root_fname, enc_root_fname, func, ext_list }
-6
apps/playback.c
···36253625 }
36263626}
3627362736283628-/* Has the playback buffer been completely claimed? */
36293629-bool audio_buffer_state_trashed(void)
36303630-{
36313631- return buffer_state == AUDIOBUF_STATE_TRASHED;
36323632-}
36333633-3634362836353629/** --- Miscellaneous public interfaces --- **/
36363630
-1
apps/playback.h
···8787};
8888bool audio_restore_playback(int type); /* Restores the audio buffer to handle the requested playback */
8989size_t audio_get_filebuflen(void);
9090-bool audio_buffer_state_trashed(void);
91909291/* Automatic transition? Only valid to call during the track change events,
9392 otherwise the result is undefined. */
-11
apps/playlist_viewer.c
···126126127127static bool update_playlist(bool force);
128128static int onplay_menu(int index);
129129-static int save_playlist_func(void);
130129131130static void playlist_buffer_init(struct playlist_buffer *pb, char *names_buffer,
132131 int names_buffer_size)
···437436 return true;
438437}
439438440440-MENUITEM_FUNCTION(save_playlist_item, 0, ID2P(LANG_SAVE_DYNAMIC_PLAYLIST),
441441- save_playlist_func, 0, NULL, Icon_NOICON);
442442-443439/* Menu of playlist commands. Invoked via ON+PLAY on main viewer screen.
444440 Returns -1 if USB attached, 0 if no playlist change, and 1 if playlist
445441 changed. */
···519515 }
520516 }
521517 return ret;
522522-}
523523-524524-/* Save playlist to disk */
525525-static int save_playlist_func(void)
526526-{
527527- save_playlist_screen(viewer.playlist);
528528- return 0;
529518}
530519531520/* View current playlist */
+2
apps/radio/presets.c
···617617 radio_save_presets();
618618}
619619620620+#if 0 /* disabled in draw_progressbar() */
620621#ifdef HAVE_LCD_BITMAP
621622static inline void draw_vertical_line_mark(struct screen * screen,
622623 int x, int y, int h)
···643644 }
644645}
645646#endif
647647+#endif
+2-1
apps/radio/radio.h
···6262 char name[MAX_FMPRESET_LEN+1];
6363};
6464const char* radio_get_preset_name(int preset);
6565+#if 0 /* disabled in draw_progressbar() */
6566void presets_draw_markers(struct screen *screen, int x, int y, int w, int h);
6767+#endif
66686769#ifdef HAVE_ALBUMART
6870void radioart_init(bool entering_screen);
···79818082/* only radio.c should be using these! */
8183int fms_do_button_loop(bool update_screen);
8282-struct gui_wps *fms_get(enum screen_type screen);
8384void fms_fix_displays(enum fms_exiting toggle_state);
84858586#endif /* CONFIG_TUNER */
···307307}
308308309309310310-/* drawer function for the GUI_EVENT_REDRAW callback */
311311-void tree_drawlists(void)
312312-{
313313- /* band-aid to fix the bar/list redrawing properly after leaving a plugin */
314314- send_event(GUI_EVENT_THEME_CHANGED, NULL);
315315- /* end bandaid */
316316- gui_synclist_draw(&tree_lists);
317317-}
318318-319319-320310struct tree_context* tree_get_context(void)
321311{
322312 return &tc;
-1
apps/tree.h
···105105 * Call one of the two below after yields since the entrys may move inbetween */
106106struct entry* tree_get_entries(struct tree_context *t);
107107struct entry* tree_get_entry_at(struct tree_context *t, int index);
108108-void tree_drawlists(void);
109108void tree_mem_init(void) INIT_ATTR;
110109void tree_gui_init(void) INIT_ATTR;
111110char* get_current_file(char* buffer, size_t buffer_len);
+2
firmware/enc_base.c
···25252626/** mp3_enc.codec **/
27272828+#if 0 /* Currently unused, left for reference and future use */
2829/* These are in descending order rather than in MPEG frequency index
2930 order */
3031const unsigned long mp3_enc_sampr[MP3_ENC_NUM_SAMPR] =
···3536 12000, 11025, 8000, /* MPEG 2.5 */
3637#endif
3738};
3939+#endif
38403941/* All bitrates used in the MPA L3 standard */
4042const unsigned long mp3_enc_bitr[MP3_ENC_NUM_BITR] =
+2
firmware/export/enc_base.h
···9797/* This number is count of full encoder set */
9898#define MP3_ENC_NUM_SAMPR 6
9999100100+#if 0
100101extern const unsigned long mp3_enc_sampr[MP3_ENC_NUM_SAMPR];
102102+#endif
101103extern const unsigned long mp3_enc_bitr[MP3_ENC_NUM_BITR];
102104103105struct mp3_enc_config
-1
firmware/export/usb.h
···132132 struct usb_transfer_completion_event_data *event_data);
133133bool usb_driver_enabled(int driver);
134134bool usb_exclusive_storage(void); /* storage is available for usb */
135135-void usb_storage_try_release_storage(void);
136135#endif
137136int usb_release_exclusive_storage(void);
138137