forked from len0rd/rockbox
radio_screen() return value is unused -> void
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28113 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c78d55a311
commit
d2000a9178
2 changed files with 3 additions and 15 deletions
|
|
@ -387,10 +387,9 @@ void talk_freq(int freq, bool enqueue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int radio_screen(void)
|
void radio_screen(void)
|
||||||
{
|
{
|
||||||
bool done = false;
|
bool done = false;
|
||||||
int ret_val = GO_TO_ROOT;
|
|
||||||
int button;
|
int button;
|
||||||
int i;
|
int i;
|
||||||
bool stereo = false, last_stereo = false;
|
bool stereo = false, last_stereo = false;
|
||||||
|
|
@ -403,7 +402,6 @@ int radio_screen(void)
|
||||||
unsigned long rec_lastclick = 0;
|
unsigned long rec_lastclick = 0;
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_CODEC != SWCODEC
|
#if CONFIG_CODEC != SWCODEC
|
||||||
bool have_recorded = false;
|
|
||||||
int timeout = current_tick + HZ/10;
|
int timeout = current_tick + HZ/10;
|
||||||
unsigned int last_seconds = 0;
|
unsigned int last_seconds = 0;
|
||||||
#if !defined(SIMULATOR)
|
#if !defined(SIMULATOR)
|
||||||
|
|
@ -433,9 +431,7 @@ int radio_screen(void)
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
|
|
||||||
#if CONFIG_CODEC != SWCODEC
|
#if CONFIG_CODEC != SWCODEC
|
||||||
if(rec_create_directory() > 0)
|
rec_create_directory();
|
||||||
have_recorded = true;
|
|
||||||
|
|
||||||
audio_init_recording(talk_get_bufsize());
|
audio_init_recording(talk_get_bufsize());
|
||||||
|
|
||||||
sound_settings_apply();
|
sound_settings_apply();
|
||||||
|
|
@ -558,7 +554,6 @@ int radio_screen(void)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
have_recorded = true;
|
|
||||||
rec_command(RECORDING_CMD_START);
|
rec_command(RECORDING_CMD_START);
|
||||||
update_type = SKIN_REFRESH_ALL;
|
update_type = SKIN_REFRESH_ALL;
|
||||||
}
|
}
|
||||||
|
|
@ -574,7 +569,6 @@ int radio_screen(void)
|
||||||
#endif
|
#endif
|
||||||
keep_playing = true;
|
keep_playing = true;
|
||||||
done = true;
|
done = true;
|
||||||
ret_val = GO_TO_ROOT;
|
|
||||||
if(presets_have_changed())
|
if(presets_have_changed())
|
||||||
{
|
{
|
||||||
if(yesno_pop(ID2P(LANG_FM_SAVE_CHANGES)))
|
if(yesno_pop(ID2P(LANG_FM_SAVE_CHANGES)))
|
||||||
|
|
@ -741,7 +735,6 @@ int radio_screen(void)
|
||||||
#endif
|
#endif
|
||||||
keep_playing = false;
|
keep_playing = false;
|
||||||
done = true;
|
done = true;
|
||||||
ret_val = GO_TO_ROOT;
|
|
||||||
if(presets_have_changed())
|
if(presets_have_changed())
|
||||||
{
|
{
|
||||||
if(yesno_pop(ID2P(LANG_FM_SAVE_CHANGES)))
|
if(yesno_pop(ID2P(LANG_FM_SAVE_CHANGES)))
|
||||||
|
|
@ -884,11 +877,6 @@ int radio_screen(void)
|
||||||
#endif
|
#endif
|
||||||
fms_fix_displays(FMS_EXIT);
|
fms_fix_displays(FMS_EXIT);
|
||||||
in_screen = false;
|
in_screen = false;
|
||||||
#if CONFIG_CODEC != SWCODEC
|
|
||||||
return have_recorded;
|
|
||||||
#else
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
} /* radio_screen */
|
} /* radio_screen */
|
||||||
|
|
||||||
void toggle_mono_mode(bool mono)
|
void toggle_mono_mode(bool mono)
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ enum {
|
||||||
void radio_load_presets(char *filename);
|
void radio_load_presets(char *filename);
|
||||||
void radio_save_presets(void);
|
void radio_save_presets(void);
|
||||||
void radio_init(void) INIT_ATTR;
|
void radio_init(void) INIT_ATTR;
|
||||||
int radio_screen(void);
|
void radio_screen(void);
|
||||||
void radio_start(void);
|
void radio_start(void);
|
||||||
void radio_pause(void);
|
void radio_pause(void);
|
||||||
void radio_stop(void);
|
void radio_stop(void);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue