diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2012-03-03 19:37:40 +0100 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2012-03-03 20:19:08 +0100 |
commit | 466a7c6a405f80cd8e01ebf0a70eb406863a38f1 (patch) | |
tree | acd8dcec239d7407a69df7f20b9ad7f3b10f4200 /lib/rbcodec/test/warble.c | |
parent | 13a7c9ac70bfeed574d38705ab568c2085ca77e7 (diff) | |
download | rockbox-466a7c6a405f80cd8e01ebf0a70eb406863a38f1.tar.gz rockbox-466a7c6a405f80cd8e01ebf0a70eb406863a38f1.zip |
Integrate the warble tool in the regular build system.
Only sdl app builds work properly for now.
Change-Id: I7807d42f69b8577b401e48cdc63de71e54f49217
Diffstat (limited to 'lib/rbcodec/test/warble.c')
-rw-r--r-- | lib/rbcodec/test/warble.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c index 2cba6c0d59..e3d9456f4d 100644 --- a/lib/rbcodec/test/warble.c +++ b/lib/rbcodec/test/warble.c | |||
@@ -358,9 +358,11 @@ static void perform_config(void) | |||
358 | codec_action_param = atoi(val); | 358 | codec_action_param = atoi(val); |
359 | } else if (!strncmp(name, "tempo=", 6)) { | 359 | } else if (!strncmp(name, "tempo=", 6)) { |
360 | dsp_set_timestretch(atof(val) * PITCH_SPEED_100); | 360 | dsp_set_timestretch(atof(val) * PITCH_SPEED_100); |
361 | #ifdef HAVE_SW_VOLUME_CONTROL | ||
361 | } else if (!strncmp(name, "vol=", 4)) { | 362 | } else if (!strncmp(name, "vol=", 4)) { |
362 | global_settings.volume = atoi(val); | 363 | global_settings.volume = atoi(val); |
363 | dsp_callback(DSP_CALLBACK_SET_SW_VOLUME, 0); | 364 | dsp_callback(DSP_CALLBACK_SET_SW_VOLUME, 0); |
365 | #endif | ||
364 | } else { | 366 | } else { |
365 | fprintf(stderr, "error: unrecognized config \"%.*s\"\n", | 367 | fprintf(stderr, "error: unrecognized config \"%.*s\"\n", |
366 | (int)(eq - name), name); | 368 | (int)(eq - name), name); |
@@ -775,7 +777,9 @@ static void print_help(const char *progname) | |||
775 | " rate=<n> Multiply rate by <n> [1.0]\n" | 777 | " rate=<n> Multiply rate by <n> [1.0]\n" |
776 | " seek=<n> Seek <n> ms into the file\n" | 778 | " seek=<n> Seek <n> ms into the file\n" |
777 | " tempo=<n> Timestretch by <n> [1.0]\n" | 779 | " tempo=<n> Timestretch by <n> [1.0]\n" |
780 | #ifdef HAVE_SW_VOLUME_CONTROL | ||
778 | " vol=<n> Set volume to <n> dB [0]\n" | 781 | " vol=<n> Set volume to <n> dB [0]\n" |
782 | #endif | ||
779 | " wait=<n> Don't apply remaining configuration until\n" | 783 | " wait=<n> Don't apply remaining configuration until\n" |
780 | " <n> total samples have output\n" | 784 | " <n> total samples have output\n" |
781 | "\n" | 785 | "\n" |