mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
[Feature] Persist pitch settings through reboots part deux
Revisit this after discussion with chris_s on IRC and forum Pitch menu now changes icon when pitch has been changed uses NVRAM to save the pitch settings unconditionally Manual updated Change-Id: Idcb4c2b7fe42f7a203dc4bfc46285657f370d0fd
This commit is contained in:
parent
3e57ca15a5
commit
4e271642df
12 changed files with 62 additions and 103 deletions
|
@ -321,9 +321,19 @@ static int recscrn(void* param)
|
|||
static int wpsscrn(void* param)
|
||||
{
|
||||
int ret_val = GO_TO_PREVIOUS;
|
||||
int audstatus = audio_status();
|
||||
(void)param;
|
||||
push_current_activity(ACTIVITY_WPS);
|
||||
if (audio_status())
|
||||
|
||||
#ifdef HAVE_PITCHCONTROL
|
||||
if (!audstatus)
|
||||
{
|
||||
sound_set_pitch(global_status.resume_pitch);
|
||||
dsp_set_timestretch(global_status.resume_speed);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (audstatus)
|
||||
{
|
||||
talk_shutup();
|
||||
ret_val = gui_wps_show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue