From 1ea879e5580f63414693655fcf0328559cdce138 Mon Sep 17 00:00:00 2001 From: malc Date: Wed, 3 Dec 2008 22:48:44 +0000 Subject: Make audio violate POSIX less git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5864 c046a42c-6fe2-441c-8c8c-71466251a162 --- audio/rate_template.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'audio/rate_template.h') diff --git a/audio/rate_template.h b/audio/rate_template.h index 398d305e92..bd4b1c7685 100644 --- a/audio/rate_template.h +++ b/audio/rate_template.h @@ -27,15 +27,15 @@ * Processed signed long samples from ibuf to obuf. * Return number of samples processed. */ -void NAME (void *opaque, st_sample_t *ibuf, st_sample_t *obuf, +void NAME (void *opaque, struct st_sample *ibuf, struct st_sample *obuf, int *isamp, int *osamp) { struct rate *rate = opaque; - st_sample_t *istart, *iend; - st_sample_t *ostart, *oend; - st_sample_t ilast, icur, out; + struct st_sample *istart, *iend; + struct st_sample *ostart, *oend; + struct st_sample ilast, icur, out; #ifdef FLOAT_MIXENG - real_t t; + mixeng_real t; #else int64_t t; #endif @@ -84,7 +84,7 @@ void NAME (void *opaque, st_sample_t *ibuf, st_sample_t *obuf, #ifdef RECIPROCAL t = (rate->opos & UINT_MAX) * (1.f / UINT_MAX); #else - t = (rate->opos & UINT_MAX) / (real_t) UINT_MAX; + t = (rate->opos & UINT_MAX) / (mixeng_real) UINT_MAX; #endif out.l = (ilast.l * (1.0 - t)) + icur.l * t; out.r = (ilast.r * (1.0 - t)) + icur.r * t; -- cgit v1.2.1