diff options
author | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-03 22:48:44 +0000 |
---|---|---|
committer | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-03 22:48:44 +0000 |
commit | 1ea879e5580f63414693655fcf0328559cdce138 (patch) | |
tree | 45f2e4d57a73fd269004d1a32aeb450ad4881c13 /audio/rate_template.h | |
parent | 8b0de438d4c814fc2d7d1330a146a2e1cb8877b2 (diff) |
Make audio violate POSIX less
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5864 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/rate_template.h')
-rw-r--r-- | audio/rate_template.h | 12 |
1 files changed, 6 insertions, 6 deletions
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; |