forked from len0rd/rockbox
[Feature] Persist pitch settings through reboots
saves the pitch setting across reboots adds option 'Reset Setting' Change-Id: I75d88f9653883a256c6cca0f7adcdccb2dd51406
This commit is contained in:
parent
5e8d3fec66
commit
13c3214d9c
7 changed files with 126 additions and 10 deletions
|
|
@ -19,7 +19,17 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
#include "plugin.h"
|
||||
#include "pitchscreen.h"
|
||||
|
||||
int gui_syncpitchscreen_run(void)
|
||||
{
|
||||
return (plugin_load(VIEWERS_DIR"/pitch_screen.rock", NULL) == PLUGIN_USB_CONNECTED);
|
||||
}
|
||||
|
||||
int reset_pitch(void)
|
||||
{
|
||||
sound_set_pitch(PITCH_SPEED_100);
|
||||
dsp_set_timestretch(PITCH_SPEED_100);
|
||||
remove(PITCH_CFG_FILE);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@
|
|||
#ifndef _PITCHSCREEN_H_
|
||||
#define _PITCHSCREEN_H_
|
||||
|
||||
#define PITCH_CFG_FILE ROCKBOX_DIR "/pitch.cfg"
|
||||
int gui_syncpitchscreen_run(void);
|
||||
int reset_pitch(void);
|
||||
|
||||
#endif /* _PITCHSCREEN_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue