diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-12-12 22:58:53 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-12-12 22:58:53 +0000 |
commit | e02be6c15beddec976220bce2ee1a68520286c01 (patch) | |
tree | da9cfdfd7a254fa7e8e21b1ef29456b852dbc133 /polyp/sample.c | |
parent | 9a01cf44f09e92e14a720f4f531e943a50f26b72 (diff) |
* fix include file names in installed header files
* add browsing API
* add new tool pabrowse
* add typeid subsystem
* bump API version
* split off random.c
* add an identification cookie
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@320 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sample.c')
-rw-r--r-- | polyp/sample.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/polyp/sample.c b/polyp/sample.c index b0723f70..51afaa01 100644 --- a/polyp/sample.c +++ b/polyp/sample.c @@ -163,23 +163,23 @@ void pa_bytes_snprint(char *s, size_t l, unsigned v) { enum pa_sample_format pa_parse_sample_format(const char *format) { - if (strcmp(format, "s16le") == 0) + if (strcasecmp(format, "s16le") == 0) return PA_SAMPLE_S16LE; - else if (strcmp(format, "s16be") == 0) + else if (strcasecmp(format, "s16be") == 0) return PA_SAMPLE_S16BE; - else if (strcmp(format, "s16ne") == 0 || strcmp(format, "s16") == 0 || strcmp(format, "16") == 0) + else if (strcasecmp(format, "s16ne") == 0 || strcasecmp(format, "s16") == 0 || strcasecmp(format, "16") == 0) return PA_SAMPLE_S16NE; - else if (strcmp(format, "u8") == 0 || strcmp(format, "8") == 0) + else if (strcasecmp(format, "u8") == 0 || strcasecmp(format, "8") == 0) return PA_SAMPLE_U8; - else if (strcmp(format, "float32") == 0 || strcmp(format, "float32ne") == 0) + else if (strcasecmp(format, "float32") == 0 || strcasecmp(format, "float32ne") == 0) return PA_SAMPLE_FLOAT32; - else if (strcmp(format, "float32le") == 0) + else if (strcasecmp(format, "float32le") == 0) return PA_SAMPLE_FLOAT32LE; - else if (strcmp(format, "float32be") == 0) + else if (strcasecmp(format, "float32be") == 0) return PA_SAMPLE_FLOAT32BE; - else if (strcmp(format, "ulaw") == 0) + else if (strcasecmp(format, "ulaw") == 0) return PA_SAMPLE_ULAW; - else if (strcmp(format, "alaw") == 0) + else if (strcasecmp(format, "alaw") == 0) return PA_SAMPLE_ALAW; return -1; |