diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
commit | 1f0961368f58a9fec319d86c79a86a9f0d008cf5 (patch) | |
tree | c712a897bb34ade3c03a06ba754264153ac3bc16 /polyp/sconv.c | |
parent | 6c512fb5a3fdb578179be79672c5096de1a1d25b (diff) |
* remove a lot of compiler warnings introduced by using some new GCC flags
* add typedefs for public structs and enums and drop the struct/enum prefixs from all uses where it makes sense
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@447 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sconv.c')
-rw-r--r-- | polyp/sconv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/polyp/sconv.c b/polyp/sconv.c index a404f432..223df5d9 100644 --- a/polyp/sconv.c +++ b/polyp/sconv.c @@ -115,7 +115,7 @@ static void ulaw_to_float32ne(unsigned n, const void *a, unsigned an, float *b) float sum = 0; for (i = 0; i < an; i++) - sum += (float) st_ulaw2linear16(*ca++) / 0x7FFF; + sum += st_ulaw2linear16(*ca++) * 1.0F / 0x7FFF; if (sum > 1) sum = 1; @@ -156,7 +156,7 @@ static void alaw_to_float32ne(unsigned n, const void *a, unsigned an, float *b) float sum = 0; for (i = 0; i < an; i++) - sum += (float) st_alaw2linear16(*ca++) / 0x7FFF; + sum += st_alaw2linear16(*ca++) * 1.0F / 0x7FFF; if (sum > 1) sum = 1; @@ -190,7 +190,7 @@ static void alaw_from_float32ne(unsigned n, const float *a, void *b, unsigned bn } -pa_convert_to_float32ne_func_t pa_get_convert_to_float32ne_function(enum pa_sample_format f) { +pa_convert_to_float32ne_func_t pa_get_convert_to_float32ne_function(pa_sample_format f) { switch(f) { case PA_SAMPLE_U8: return u8_to_float32ne; @@ -209,7 +209,7 @@ pa_convert_to_float32ne_func_t pa_get_convert_to_float32ne_function(enum pa_samp } } -pa_convert_from_float32ne_func_t pa_get_convert_from_float32ne_function(enum pa_sample_format f) { +pa_convert_from_float32ne_func_t pa_get_convert_from_float32ne_function(pa_sample_format f) { switch(f) { case PA_SAMPLE_U8: return u8_from_float32ne; |