From 26fc31ae935c431ed0d2eb7786615901b4ea090d Mon Sep 17 00:00:00 2001 From: Sean Bartell Date: Fri, 17 Jun 2011 00:49:54 -0400 Subject: Add the warble test program. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Warble uses Rockbox's codecs to play files with SDL or convert them to WAV or raw formats. It also prints metadata and supports some of the DSP effects. In the future, warble could be used to implement an automated test suite for codecs, metadata, and DSP. Change-Id: Ife1a63d2354496016277bfcbae4a9c23423ebd86 Reviewed-on: http://gerrit.rockbox.org/135 Reviewed-by: Nils Wallménius Tested-by: Nils Wallménius --- apps/metadata/metadata_common.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/metadata/metadata_common.c b/apps/metadata/metadata_common.c index 7811237..e861644 100644 --- a/apps/metadata/metadata_common.c +++ b/apps/metadata/metadata_common.c @@ -29,7 +29,6 @@ #include "metadata_common.h" #include "metadata_parsers.h" #include "replaygain.h" -#include "misc.h" /* Read a string from the file. Read up to size bytes, or, if eos != -1, * until the eos character is found (eos is not stored in buf, unless it is @@ -202,7 +201,10 @@ uint32_t get_itunes_int32(char* value, int count) while (count-- > 0) { - value = skip_whitespace(value); + while (isspace(*value)) + { + value++; + } while (*value && !isspace(*value)) { @@ -210,7 +212,10 @@ uint32_t get_itunes_int32(char* value, int count) } } - value = skip_whitespace(value); + while (isspace(*value)) + { + value++; + } while (*value && ((c = strchr(hexdigits, toupper(*value))) != NULL)) { -- cgit v1.1