1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2007 Jonathan Gordon
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
32 #include "mp3_playback.h"
36 #ifdef HAVE_LCD_BITMAP
38 #include "scrollbar.h"
51 #include "peakmeter.h"
54 #if CONFIG_CODEC == SWCODEC
57 #include "menus/eq_menu.h"
59 #include "enc_config.h"
64 #include "recording.h"
65 #include "sound_menu.h"
66 #include "option_select.h"
67 #include "settings_list.h"
70 #include "exported_menus.h"
72 static bool no_source_in_menu
= false;
73 static int recmenu_callback(int action
,const struct menu_item_ex
*this_item
);
75 static int recsource_func(void)
77 int n_opts
= REC_NUM_SOURCES
;
79 static const struct opt_items names
[AUDIO_NUM_SOURCES
] = {
80 HAVE_MIC_REC_([AUDIO_SRC_MIC
]
81 = { STR(LANG_RECORDING_SRC_MIC
) },)
82 HAVE_LINE_REC_([AUDIO_SRC_LINEIN
]
83 = { STR(LANG_LINE_IN
) },)
84 HAVE_SPDIF_REC_([AUDIO_SRC_SPDIF
]
85 = { STR(LANG_RECORDING_SRC_DIGITAL
) },)
86 HAVE_FMRADIO_REC_([AUDIO_SRC_FMRADIO
]
87 = { STR(LANG_FM_RADIO
) },)
90 /* caveat: assumes it's the last item! */
91 #ifdef HAVE_FMRADIO_REC
92 if (!radio_hardware_present())
96 return set_option(str(LANG_RECORDING_SOURCE
),
97 &global_settings
.rec_source
, INT
, names
,
100 MENUITEM_FUNCTION(recsource
, 0, ID2P(LANG_RECORDING_SOURCE
),
101 recsource_func
, NULL
, recmenu_callback
, Icon_Menu_setting
);
103 #if CONFIG_CODEC == SWCODEC
104 /* Makes an options list from a source list of options and indexes */
105 static void make_options_from_indexes(const struct opt_items
*src_names
,
106 const long *src_indexes
,
108 struct opt_items
*dst_names
)
110 while (--n_indexes
>= 0)
111 dst_names
[n_indexes
] = src_names
[src_indexes
[n_indexes
]];
112 } /* make_options_from_indexes */
115 #endif /* CONFIG_CODEC == SWCODEC */
117 static int recfrequency_func(void)
119 #if CONFIG_CODEC == MAS3587F
120 static const struct opt_items names
[6] = {
121 { "44.1kHz", TALK_ID(44, UNIT_KHZ
) },
122 { "48kHz", TALK_ID(48, UNIT_KHZ
) },
123 { "32kHz", TALK_ID(32, UNIT_KHZ
) },
124 { "22.05kHz", TALK_ID(22, UNIT_KHZ
) },
125 { "24kHz", TALK_ID(24, UNIT_KHZ
) },
126 { "16kHz", TALK_ID(16, UNIT_KHZ
) }
128 return set_option(str(LANG_RECORDING_FREQUENCY
),
129 &global_settings
.rec_frequency
, INT
,
131 #endif /* CONFIG_CODEC == MAS3587F */
133 #if CONFIG_CODEC == SWCODEC
134 static const struct opt_items names
[REC_NUM_FREQ
] = {
135 REC_HAVE_96_([REC_FREQ_96
] = { "96kHz", TALK_ID(96, UNIT_KHZ
) },)
136 REC_HAVE_88_([REC_FREQ_88
] = { "88.2kHz", TALK_ID(88, UNIT_KHZ
) },)
137 REC_HAVE_64_([REC_FREQ_64
] = { "64kHz", TALK_ID(64, UNIT_KHZ
) },)
138 REC_HAVE_48_([REC_FREQ_48
] = { "48kHz", TALK_ID(48, UNIT_KHZ
) },)
139 REC_HAVE_44_([REC_FREQ_44
] = { "44.1kHz", TALK_ID(44, UNIT_KHZ
) },)
140 REC_HAVE_32_([REC_FREQ_32
] = { "32kHz", TALK_ID(32, UNIT_KHZ
) },)
141 REC_HAVE_24_([REC_FREQ_24
] = { "24kHz", TALK_ID(24, UNIT_KHZ
) },)
142 REC_HAVE_22_([REC_FREQ_22
] = { "22.05kHz", TALK_ID(22, UNIT_KHZ
) },)
143 REC_HAVE_16_([REC_FREQ_16
] = { "16kHz", TALK_ID(16, UNIT_KHZ
) },)
144 REC_HAVE_12_([REC_FREQ_12
] = { "12kHz", TALK_ID(12, UNIT_KHZ
) },)
145 REC_HAVE_11_([REC_FREQ_11
] = { "11.025kHz", TALK_ID(11, UNIT_KHZ
) },)
146 REC_HAVE_8_( [REC_FREQ_8
] = { "8kHz", TALK_ID( 8, UNIT_KHZ
) },)
149 struct opt_items opts
[REC_NUM_FREQ
];
150 unsigned long table
[REC_NUM_FREQ
];
155 #ifdef HAVE_SPDIF_REC
156 if (global_settings
.rec_source
== REC_SRC_SPDIF
)
158 /* Inform user that frequency follows the source's frequency */
159 opts
[0].string
= ID2P(LANG_SOURCE_FREQUENCY
);
160 opts
[0].voice_id
= LANG_SOURCE_FREQUENCY
;
167 struct encoder_caps caps
;
168 struct encoder_config cfg
;
170 cfg
.rec_format
= global_settings
.rec_format
;
171 global_to_encoder_config(&cfg
);
173 if (!enc_get_caps(&cfg
, &caps
, true))
176 /* Construct samplerate menu based upon encoder settings */
177 n_opts
= make_list_from_caps32(REC_SAMPR_CAPS
, NULL
,
178 caps
.samplerate_caps
, table
);
181 return false; /* No common flags...?? */
183 make_options_from_indexes(names
, table
, n_opts
, opts
);
185 /* Find closest rate that the potentially restricted list
187 make_list_from_caps32(REC_SAMPR_CAPS
, rec_freq_sampr
,
188 caps
.samplerate_caps
, table
);
190 rec_frequency
= round_value_to_list32(
191 rec_freq_sampr
[global_settings
.rec_frequency
],
192 table
, n_opts
, false);
195 ret
= set_option(str(LANG_RECORDING_FREQUENCY
),
196 &rec_frequency
, INT
, opts
, n_opts
, NULL
);
199 HAVE_SPDIF_REC_( && global_settings
.rec_source
!= REC_SRC_SPDIF
)
202 /* Translate back to full index */
203 global_settings
.rec_frequency
=
204 round_value_to_list32(table
[rec_frequency
],
211 #endif /* CONFIG_CODEC == SWCODEC */
213 MENUITEM_FUNCTION(recfrequency
, 0, ID2P(LANG_RECORDING_FREQUENCY
),
214 recfrequency_func
, NULL
, NULL
, Icon_Menu_setting
);
217 static int recchannels_func(void)
219 static const struct opt_items names
[CHN_NUM_MODES
] = {
220 [CHN_MODE_STEREO
] = { STR(LANG_CHANNEL_STEREO
) },
221 [CHN_MODE_MONO
] = { STR(LANG_CHANNEL_MONO
) }
223 #if CONFIG_CODEC == MAS3587F
224 return set_option(str(LANG_CHANNELS
),
225 &global_settings
.rec_channels
, INT
,
226 names
, CHN_NUM_MODES
, NULL
);
227 #endif /* CONFIG_CODEC == MAS3587F */
229 #if CONFIG_CODEC == SWCODEC
230 struct opt_items opts
[CHN_NUM_MODES
];
231 long table
[CHN_NUM_MODES
];
232 struct encoder_caps caps
;
233 struct encoder_config cfg
;
238 cfg
.rec_format
= global_settings
.rec_format
;
239 global_to_encoder_config(&cfg
);
241 if (!enc_get_caps(&cfg
, &caps
, true))
244 n_opts
= make_list_from_caps32(CHN_CAP_ALL
, NULL
,
245 caps
.channel_caps
, table
);
247 rec_channels
= round_value_to_list32(global_settings
.rec_channels
,
248 table
, n_opts
, false);
250 make_options_from_indexes(names
, table
, n_opts
, opts
);
252 ret
= set_option(str(LANG_CHANNELS
), &rec_channels
,
253 INT
, opts
, n_opts
, NULL
);
256 global_settings
.rec_channels
= table
[rec_channels
];
259 #endif /* CONFIG_CODEC == SWCODEC */
261 MENUITEM_FUNCTION(recchannels
, 0, ID2P(LANG_CHANNELS
),
262 recchannels_func
, NULL
, NULL
, Icon_Menu_setting
);
264 #if CONFIG_CODEC == SWCODEC
266 static int recmonomode_func(void)
268 static const struct opt_items names
[3] = {
269 [0] = { STR(LANG_CHANNEL_LEFTRIGHT
) },
270 [1] = { STR(LANG_CHANNEL_LEFT
) },
271 [2] = { STR(LANG_CHANNEL_RIGHT
) },
274 int rec_mono_mode
= global_settings
.rec_mono_mode
;
275 bool ret
= set_option(str(LANG_RECORDING_MONO_MODE
), &rec_mono_mode
,
276 INT
, names
, 3, NULL
);
278 if (rec_mono_mode
!= global_settings
.rec_mono_mode
)
279 global_settings
.rec_mono_mode
= rec_mono_mode
;
283 MENUITEM_FUNCTION(recmonomode
, 0, ID2P(LANG_RECORDING_MONO_MODE
),
284 recmonomode_func
, NULL
, NULL
, Icon_Menu_setting
);
286 static int recformat_func(void)
288 static const struct opt_items names
[REC_NUM_FORMATS
] = {
289 [REC_FORMAT_AIFF
] = { STR(LANG_AFMT_AIFF
) },
290 [REC_FORMAT_MPA_L3
] = { STR(LANG_AFMT_MPA_L3
) },
291 [REC_FORMAT_WAVPACK
] = { STR(LANG_AFMT_WAVPACK
) },
292 [REC_FORMAT_PCM_WAV
] = { STR(LANG_AFMT_PCM_WAV
) },
295 int rec_format
= global_settings
.rec_format
;
296 bool res
= set_option(str(LANG_RECORDING_FORMAT
), &rec_format
, INT
,
297 names
, REC_NUM_FORMATS
, NULL
);
299 if (rec_format
!= global_settings
.rec_format
)
301 global_settings
.rec_format
= rec_format
;
302 enc_global_settings_apply();
307 MENUITEM_FUNCTION(recformat
, 0, ID2P(LANG_RECORDING_FORMAT
),
308 recformat_func
, NULL
, NULL
, Icon_Menu_setting
);
310 MENUITEM_FUNCTION(enc_global_config_menu_item
, 0, ID2P(LANG_ENCODER_SETTINGS
),
311 (int(*)(void))enc_global_config_menu
,
312 NULL
, NULL
, Icon_Submenu
);
314 #endif /* CONFIG_CODEC == SWCODEC */
317 static int recmenu_callback(int action
,const struct menu_item_ex
*this_item
)
321 case ACTION_REQUEST_MENUITEM
:
322 if (this_item
== &recsource
&& no_source_in_menu
)
323 return ACTION_EXIT_MENUITEM
;
328 #if CONFIG_CODEC == MAS3587F
329 MENUITEM_SETTING(rec_quality
, &global_settings
.rec_quality
, NULL
);
330 MENUITEM_SETTING(rec_editable
, &global_settings
.rec_editable
, NULL
);
333 MENUITEM_SETTING(rec_split_type
, &global_settings
.rec_split_type
, NULL
);
334 MENUITEM_SETTING(rec_split_method
, &global_settings
.rec_split_method
, NULL
);
335 MENUITEM_SETTING(rec_timesplit
, &global_settings
.rec_timesplit
, NULL
);
336 MENUITEM_SETTING(rec_sizesplit
, &global_settings
.rec_sizesplit
, NULL
);
337 MAKE_MENU(filesplitoptionsmenu
, ID2P(LANG_RECORD_TIMESPLIT
), NULL
, Icon_NOICON
,
338 &rec_split_method
, &rec_split_type
, &rec_timesplit
, &rec_sizesplit
);
341 MENUITEM_SETTING(rec_prerecord_time
, &global_settings
.rec_prerecord_time
, NULL
);
343 static int clear_rec_directory(void)
345 strcpy(global_settings
.rec_directory
, REC_BASE_DIR
);
347 splash(HZ
, ID2P(LANG_RESET_DONE_CLEAR
));
350 MENUITEM_FUNCTION(clear_rec_directory_item
, 0, ID2P(LANG_CLEAR_REC_DIR
),
351 clear_rec_directory
, NULL
, NULL
, Icon_Folder
);
353 MENUITEM_SETTING(cliplight
, &global_settings
.cliplight
, NULL
);
356 static int agc_preset_func(void)
358 static const struct opt_items names
[] = {
360 { STR(LANG_AGC_SAFETY
) },
361 { STR(LANG_AGC_LIVE
) },
362 { STR(LANG_AGC_DJSET
) },
363 { STR(LANG_AGC_MEDIUM
) },
364 { STR(LANG_AGC_VOICE
) },
366 if (global_settings
.rec_source
)
367 return set_option(str(LANG_RECORDING_AGC_PRESET
),
368 &global_settings
.rec_agc_preset_line
,
369 INT
, names
, 6, NULL
);
371 return set_option(str(LANG_RECORDING_AGC_PRESET
),
372 &global_settings
.rec_agc_preset_mic
,
373 INT
, names
, 6, NULL
);
376 static int agc_cliptime_func(void)
378 static const struct opt_items names
[] = {
379 { "200ms", TALK_ID(200, UNIT_MS
) },
380 { "400ms", TALK_ID(400, UNIT_MS
) },
381 { "600ms", TALK_ID(600, UNIT_MS
) },
382 { "800ms", TALK_ID(800, UNIT_MS
) },
383 { "1s", TALK_ID(1, UNIT_SEC
) }
385 return set_option(str(LANG_RECORDING_AGC_CLIPTIME
),
386 &global_settings
.rec_agc_cliptime
,
387 INT
, names
, 5, NULL
);
389 MENUITEM_FUNCTION(agc_preset
, 0, ID2P(LANG_RECORDING_AGC_PRESET
),
390 agc_preset_func
, NULL
, NULL
, Icon_Menu_setting
);
391 MENUITEM_FUNCTION(agc_cliptime
, 0, ID2P(LANG_RECORDING_AGC_CLIPTIME
),
392 agc_cliptime_func
, NULL
, NULL
, Icon_Menu_setting
);
393 #endif /* HAVE_AGC */
396 enum trigger_menu_option
409 static enum themable_icons
trigger_get_icon(int selected_item
, void * data
)
412 if ((selected_item
% 2) == 0) /* header */
413 return Icon_Menu_setting
;
417 static const char * trigger_get_name(int selected_item
, void * data
,
418 char * buffer
, size_t buffer_len
)
420 const struct settings_list
**settings
=
421 (const struct settings_list
**)data
;
422 const struct settings_list
*s
= settings
[selected_item
/ 2];
423 if ((selected_item
% 2) == 0) /* header */
424 return P2STR(ID2P(s
->lang_id
));
428 temp
= option_value_as_int(s
);
429 if ((selected_item
/ 2 == START_THRESHOLD
||
430 selected_item
/ 2 == STOP_THRESHOLD
) &&
433 return str(LANG_OFF
);
435 return option_get_valuestring(s
, buffer
, buffer_len
, temp
);
438 static void trigger_speak_item(const struct settings_list
**settings
,
439 int selected_setting
, bool title
)
441 const struct settings_list
*s
= settings
[selected_setting
];
443 if (!global_settings
.talk_menu
)
446 talk_id(s
->lang_id
, false);
447 temp
= option_value_as_int(s
);
448 if ((selected_setting
== START_THRESHOLD
||
449 selected_setting
== STOP_THRESHOLD
) &&
452 talk_id(LANG_OFF
, title
);
454 option_talk_value(s
, temp
, title
);
459 struct viewport vp
[NB_SCREENS
], triggervp
[NB_SCREENS
];
460 struct gui_synclist lists
;
461 int action
= ACTION_REDRAW
;
462 bool done
= false, changed
= true;
463 const struct settings_list
*settings
[TRIG_OPTION_COUNT
];
465 int pm_x
[NB_SCREENS
];
466 int pm_y
[NB_SCREENS
];
467 int pm_h
[NB_SCREENS
];
468 int trig_xpos
[NB_SCREENS
];
469 int trig_ypos
[NB_SCREENS
];
470 int trig_width
[NB_SCREENS
];
472 int old_start_thres_db
= global_settings
.rec_start_thres_db
;
473 int old_start_thres_linear
= global_settings
.rec_start_thres_linear
;
474 int old_start_duration
= global_settings
.rec_start_duration
;
475 int old_prerecord_time
= global_settings
.rec_prerecord_time
;
476 int old_stop_thres_db
= global_settings
.rec_stop_thres_db
;
477 int old_stop_thres_linear
= global_settings
.rec_stop_thres_linear
;
478 int old_stop_postrec
= global_settings
.rec_stop_postrec
;
479 int old_stop_gap
= global_settings
.rec_stop_gap
;
480 int old_trigger_mode
= global_settings
.rec_trigger_mode
;
481 int old_trigger_type
= global_settings
.rec_trigger_type
;
485 screens
[i
].clear_display();
487 viewport_set_defaults(&vp
[i
], i
);
488 vp
[i
].height
-= SYSFONT_HEIGHT
*2;
489 triggervp
[i
] = vp
[i
];
490 triggervp
[i
].y
= vp
[i
].y
+ vp
[i
].height
;
491 triggervp
[i
].height
= SYSFONT_HEIGHT
*2;
495 pm_y
[i
] = SYSFONT_HEIGHT
;
496 pm_h
[i
] = SYSFONT_HEIGHT
;
497 trig_width
[i
] = triggervp
[i
].width
;
499 /* TODO: what to do if there is < 4 lines on the screen? */
501 settings
[TRIGGER_MODE
] =
502 find_setting(&global_settings
.rec_trigger_mode
, NULL
);
503 settings
[TRIGGER_TYPE
] =
504 find_setting(&global_settings
.rec_trigger_type
, NULL
);
505 settings
[PRERECORD_TIME
] =
506 find_setting(&global_settings
.rec_prerecord_time
, NULL
);
507 settings
[START_DURATION
] =
508 find_setting(&global_settings
.rec_start_duration
, NULL
);
509 settings
[STOP_POSTREC
] =
510 find_setting(&global_settings
.rec_stop_postrec
, NULL
);
512 find_setting(&global_settings
.rec_stop_gap
, NULL
);
513 if (global_settings
.peak_meter_dbfs
) /* show the dB settings */
515 settings
[START_THRESHOLD
] =
516 find_setting(&global_settings
.rec_start_thres_db
, NULL
);
517 settings
[STOP_THRESHOLD
] =
518 find_setting(&global_settings
.rec_stop_thres_db
, NULL
);
522 settings
[START_THRESHOLD
] =
523 find_setting(&global_settings
.rec_start_thres_linear
, NULL
);
524 settings
[STOP_THRESHOLD
] =
525 find_setting(&global_settings
.rec_stop_thres_linear
, NULL
);
527 gui_synclist_init(&lists
, trigger_get_name
, settings
, false, 2, vp
);
528 gui_synclist_set_nb_items(&lists
, TRIG_OPTION_COUNT
*2);
529 gui_synclist_set_icon_callback(&lists
, global_settings
.show_icons
?trigger_get_icon
:NULL
);
530 /* restart trigger with new values */
531 settings_apply_trigger();
532 peak_meter_trigger (global_settings
.rec_trigger_mode
!= TRIG_MODE_OFF
);
534 trigger_speak_item(settings
, 0, true);
540 gui_synclist_draw(&lists
);
541 peak_meter_trigger(global_settings
.rec_trigger_mode
!=TRIG_OFF
);
542 settings_apply_trigger();
547 screens
[i
].set_viewport(&triggervp
[i
]);
548 peak_meter_draw_trig(trig_xpos
, trig_ypos
, trig_width
, NB_SCREENS
);
549 action
= peak_meter_draw_get_btn(CONTEXT_SETTINGS_RECTRIGGER
,
550 pm_x
, pm_y
, pm_h
, NB_SCREENS
, triggervp
);
553 int i
= gui_synclist_get_sel_pos(&lists
);
556 case ACTION_STD_CANCEL
:
557 splash(HZ
/2, ID2P(LANG_CANCEL
));
558 global_settings
.rec_start_thres_db
= old_start_thres_db
;
559 global_settings
.rec_start_thres_linear
= old_start_thres_linear
;
560 global_settings
.rec_start_duration
= old_start_duration
;
561 global_settings
.rec_prerecord_time
= old_prerecord_time
;
562 global_settings
.rec_stop_thres_db
= old_stop_thres_db
;
563 global_settings
.rec_stop_thres_linear
= old_stop_thres_linear
;
564 global_settings
.rec_stop_postrec
= old_stop_postrec
;
565 global_settings
.rec_stop_gap
= old_stop_gap
;
566 global_settings
.rec_trigger_mode
= old_trigger_mode
;
567 global_settings
.rec_trigger_type
= old_trigger_type
;
568 peak_meter_trigger(global_settings
.rec_trigger_mode
!=TRIG_OFF
);
569 settings_apply_trigger();
575 case ACTION_SETTINGS_DEC
:
576 case ACTION_SETTINGS_DECREPEAT
:
577 option_select_next_val(settings
[i
/2], true, false);
578 trigger_speak_item(settings
, i
/2, false);
581 case ACTION_SETTINGS_INC
:
582 case ACTION_SETTINGS_INCREPEAT
:
583 option_select_next_val(settings
[i
/2], false, false);
584 trigger_speak_item(settings
, i
/2, false);
587 case ACTION_STD_PREV
:
588 case ACTION_STD_PREVREPEAT
:
591 i
= (TRIG_OPTION_COUNT
*2) - 2;
592 gui_synclist_select_item(&lists
, i
);
593 i
= gui_synclist_get_sel_pos(&lists
);
594 trigger_speak_item(settings
, i
/2, true);
597 case ACTION_STD_NEXT
:
598 case ACTION_STD_NEXTREPEAT
:
599 gui_synclist_select_item(&lists
, (i
+2) % (TRIG_OPTION_COUNT
*2));
600 i
= gui_synclist_get_sel_pos(&lists
);
601 trigger_speak_item(settings
, i
/2, true);
606 peak_meter_trigger(false);
610 MENUITEM_FUNCTION(rectrigger_item
, 0, ID2P(LANG_RECORD_TRIGGER
),
611 rectrigger
, NULL
, NULL
, Icon_Menu_setting
);
613 static struct browse_folder_info rec_config_browse
= {RECPRESETS_DIR
, SHOW_CFG
};
614 MENUITEM_FUNCTION(browse_recconfigs
, MENU_FUNC_USEPARAM
, ID2P(LANG_CUSTOM_CFG
),
615 browse_folder
, (void*)&rec_config_browse
, NULL
, Icon_Config
);
616 static int write_settings_file(void)
618 return settings_save_config(SETTINGS_SAVE_RECPRESETS
);
620 MENUITEM_FUNCTION(save_recpresets_item
, 0, ID2P(LANG_SAVE_SETTINGS
),
621 write_settings_file
, NULL
, NULL
, Icon_Config
);
623 MAKE_MENU(recording_settings_menu
, ID2P(LANG_RECORDING_SETTINGS
),
624 NULL
, Icon_Recording
,
625 #if CONFIG_CODEC == MAS3587F
628 #if CONFIG_CODEC == SWCODEC
629 &recformat
, &enc_global_config_menu_item
,
631 &recfrequency
, &recsource
, /* recsource not shown if no_source */
633 #if CONFIG_CODEC == SWCODEC
636 #if CONFIG_CODEC == MAS3587F
639 &filesplitoptionsmenu
,
641 &clear_rec_directory_item
,
642 #ifdef HAVE_BACKLIGHT
647 &agc_preset
, &agc_cliptime
,
649 #ifdef HAVE_LCD_BITMAP
652 &browse_recconfigs
, &save_recpresets_item
655 bool recording_menu(bool no_source
)
658 no_source_in_menu
= no_source
;
659 retval
= do_menu(&recording_settings_menu
, NULL
, NULL
, false) == MENU_ATTACHED_USB
;
660 no_source_in_menu
= false; /* always fall back to the default */
664 MENUITEM_FUNCTION(recording_settings
, MENU_FUNC_USEPARAM
, ID2P(LANG_RECORDING_SETTINGS
),
665 (int (*)(void*))recording_menu
, 0, NULL
, Icon_Recording
);