From cf009b4cbb1eec083ab17ce370df090979eaf68e Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Thu, 19 Aug 2021 22:20:56 -0400 Subject: 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 --- apps/plugins/lib/arg_helper.c | 4 +++- apps/plugins/lib/arg_helper.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'apps/plugins/lib') diff --git a/apps/plugins/lib/arg_helper.c b/apps/plugins/lib/arg_helper.c index d402300900..3ea5ba714d 100644 --- a/apps/plugins/lib/arg_helper.c +++ b/apps/plugins/lib/arg_helper.c @@ -28,7 +28,9 @@ #define SWCHAR '-' #define DECSEPCHAR '.' - +#ifdef PLUGIN + #define strchr rb->strchr +#endif int string_parse(const char **parameter, char* buf, size_t buf_sz) { /* fills buf with a string upto buf_sz, null terminates the buffer diff --git a/apps/plugins/lib/arg_helper.h b/apps/plugins/lib/arg_helper.h index c7b14f7f7a..2cf94ba1dd 100644 --- a/apps/plugins/lib/arg_helper.h +++ b/apps/plugins/lib/arg_helper.h @@ -26,7 +26,7 @@ #define ARGPARSE_MAX_FRAC_DIGITS 9 /* Uses 30 bits max (0.999999999) */ #define ARGP_EXP(a, b) (a ##E## b) -#define ARGP_FRAC_DEC_MULTIPLIER(n) AP_EXP(1,n) /*1x10^n*/ +#define ARGP_FRAC_DEC_MULTIPLIER(n) ARGP_EXP(1,n) /*1x10^n*/ #define ARGPARSE_FRAC_DEC_MULTIPLIER \ (long)ARGP_FRAC_DEC_MULTIPLIER(ARGPARSE_MAX_FRAC_DIGITS) -- cgit v1.2.3