1
0
Fork 0
forked from len0rd/rockbox

pitchscreen make it a plugin

full commandline parsing
    -has pitch, speed, time_stretch
 /* pitch_screen
 *  accepts args -q, -g, -p=, -s=, -k=; (= sign is optional)
 * -q silences output splash
 * -g runs the gui (Runs immediately)
 * -p100 would set pitch to 100%
 * -s=90 sets speed to 90% if timestrech is enabled
 * -k=true -k1 enables time stretch -k0 -kf-kn disables
*/

Change-Id: I900c4b5d184e12ddbe47509f66fdf3e55193a520
This commit is contained in:
William Wilgus 2021-08-19 22:20:56 -04:00 committed by William Wilgus
parent 67fb558c89
commit cf009b4cbb
8 changed files with 1314 additions and 1071 deletions

View file

@ -352,6 +352,7 @@ static const struct plugin_api rockbox_api = {
get_action,
#ifdef HAVE_TOUCHSCREEN
action_get_touchscreen_press,
action_get_touchscreen_press_in_vp,
#endif
action_userabort,
@ -413,6 +414,7 @@ static const struct plugin_api rockbox_api = {
FS_PREFIX(file_exists),
strip_extension,
crc_32,
crc_32r,
filetype_get_attr,
/* dir */
@ -593,6 +595,7 @@ static const struct plugin_api rockbox_api = {
sound_enum_hw_eq_band_setting,
#endif
#if defined (HAVE_PITCHCONTROL)
sound_get_pitch,
sound_set_pitch,
#endif
&audio_master_sampr_list[0],
@ -622,7 +625,10 @@ static const struct plugin_api rockbox_api = {
dsp_eq_enable,
dsp_dither_enable,
#ifdef HAVE_PITCHCONTROL
dsp_get_timestretch,
dsp_set_timestretch,
dsp_timestretch_enable,
dsp_timestretch_available,
#endif
dsp_configure,
dsp_get_config,
@ -641,6 +647,7 @@ static const struct plugin_api rockbox_api = {
mixer_get_frequency,
pcmbuf_fade,
pcmbuf_set_low_latency,
system_sound_play,
keyclick_click,
@ -692,6 +699,9 @@ static const struct plugin_api rockbox_api = {
audio_current_track,
audio_flush_and_reload_tracks,
audio_get_file_pos,
#ifdef PLUGIN_USE_IRAM
audio_hard_stop,
#endif
/* menu */
root_menu_get_options,
@ -735,6 +745,7 @@ static const struct plugin_api rockbox_api = {
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
__errno,
#endif
led,
srand,
rand,
(void *)qsort,
@ -780,7 +791,6 @@ static const struct plugin_api rockbox_api = {
detect_flashed_ramimage,
detect_flashed_romimage,
#endif
led,
/*plugin*/
plugin_open,
@ -789,11 +799,6 @@ static const struct plugin_api rockbox_api = {
plugin_release_audio_buffer, /* defined in plugin.c */
plugin_tsr, /* defined in plugin.c */
plugin_get_current_filename,
#ifdef PLUGIN_USE_IRAM
audio_hard_stop,
#endif
crc_32r,
/* new stuff at the end, sort into place next time
the API gets incompatible */