summaryrefslogtreecommitdiffstats
path: root/polyp/resampler.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-01 00:46:56 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-01 00:46:56 +0000
commit36550f4a66ae28e1b81b9b818c38cd0fcd1302a1 (patch)
treec76806652672d381462d3c0b6fe03995a80aae34 /polyp/resampler.c
parent34fe8bd893ed9c7531bc4898b934ef9d4cdf3e68 (diff)
remove most -W compiler warnings
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@164 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/resampler.c')
-rw-r--r--polyp/resampler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/polyp/resampler.c b/polyp/resampler.c
index ed44cbb7..b6b87607 100644
--- a/polyp/resampler.c
+++ b/polyp/resampler.c
@@ -146,7 +146,7 @@ void pa_resampler_run(struct pa_resampler *r, const struct pa_memchunk *in, stru
r->i_buf = pa_xrealloc(r->i_buf, sizeof(float) * (r->i_alloc = eff_ins));
assert(r->i_buf);
- r->to_float32_func(eff_ins, in->memblock->data+in->index, i_nchannels, r->i_buf);
+ r->to_float32_func(eff_ins, (uint8_t*) in->memblock->data+in->index, i_nchannels, r->i_buf);
if (r->src_state) {
int ret;
@@ -179,6 +179,6 @@ void pa_resampler_run(struct pa_resampler *r, const struct pa_memchunk *in, stru
} else
cbuf = r->i_buf;
- r->from_float32_func(eff_ons, cbuf, out->memblock->data+out->index, o_nchannels);
+ r->from_float32_func(eff_ons, cbuf, (uint8_t*)out->memblock->data+out->index, o_nchannels);
out->length = ons*r->o_sz;
}