diff options
author | Chris Robinson <[email protected]> | 2011-09-22 01:09:02 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-22 01:09:02 -0700 |
commit | b2f4520ba1dc806f5feb793c7b729ce975c20442 (patch) | |
tree | e50afb3f8e34430418a67a01a83730ef3734aa19 /Alc | |
parent | a4b1239f45daa29bb423077da60804d7bf9287eb (diff) |
Add a few more precision casts
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/bs2b.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -112,7 +112,7 @@ static void init(struct bs2b *bs2b) bs2b->a0_hi = 1.0 - G_hi * (1.0 - x); bs2b->a1_hi = -x; - bs2b->gain = 1.0 / (1.0 - G_hi + G_lo); + bs2b->gain = 1.0f / (float)(1.0 - G_hi + G_lo); } /* init */ /* Exported functions. @@ -180,8 +180,8 @@ void bs2b_cross_feed(struct bs2b *bs2b, float *sample) bs2b->last_sample.asis[1] = sample[1]; /* Crossfeed */ - sample[0] = bs2b->last_sample.hi[0] + bs2b->last_sample.lo[1]; - sample[1] = bs2b->last_sample.hi[1] + bs2b->last_sample.lo[0]; + sample[0] = (float)(bs2b->last_sample.hi[0] + bs2b->last_sample.lo[1]); + sample[1] = (float)(bs2b->last_sample.hi[1] + bs2b->last_sample.lo[0]); /* Bass boost cause allpass attenuation */ sample[0] *= bs2b->gain; |