* 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
This commit is contained in:
Lennart Poettering 2006-01-11 01:17:39 +00:00
parent 6c512fb5a3
commit 1f0961368f
200 changed files with 3582 additions and 3468 deletions

View file

@ -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;