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:
parent
67fb558c89
commit
cf009b4cbb
8 changed files with 1314 additions and 1071 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue