summaryrefslogtreecommitdiffstats
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2021-08-19 22:20:56 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2021-11-10 22:38:37 -0500
commitcf009b4cbb1eec083ab17ce370df090979eaf68e (patch)
tree19c2346a0e92878ef078879b77e262bf3380ec72 /apps/plugin.c
parent67fb558c8997f47440b176fe5553246486b1a838 (diff)
downloadrockbox-cf009b4cbb1eec083ab17ce370df090979eaf68e.tar.gz
rockbox-cf009b4cbb1eec083ab17ce370df090979eaf68e.zip
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
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index d1f0348cc3..c9c3d047d2 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -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 */