From c3cb09aa0cd8a7e9deeab736087cd8db7298743b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 20 Nov 2020 03:59:14 -0800 Subject: Avoid AL types in the mixer --- alc/mixer/mixer_sse41.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'alc/mixer/mixer_sse41.cpp') diff --git a/alc/mixer/mixer_sse41.cpp b/alc/mixer/mixer_sse41.cpp index 19391ea3..d3839cb2 100644 --- a/alc/mixer/mixer_sse41.cpp +++ b/alc/mixer/mixer_sse41.cpp @@ -32,14 +32,14 @@ struct LerpTag; template<> -const float *Resample_(const InterpState*, const float *RESTRICT src, ALuint frac, - ALuint increment, const al::span dst) +const float *Resample_(const InterpState*, const float *RESTRICT src, uint frac, + uint increment, const al::span dst) { const __m128i increment4{_mm_set1_epi32(static_cast(increment*4))}; const __m128 fracOne4{_mm_set1_ps(1.0f/MixerFracOne)}; const __m128i fracMask4{_mm_set1_epi32(MixerFracMask)}; - alignas(16) ALuint pos_[4], frac_[4]; + alignas(16) uint pos_[4], frac_[4]; InitPosArrays(frac, increment, frac_, pos_, 4); __m128i frac4{_mm_setr_epi32(static_cast(frac_[0]), static_cast(frac_[1]), static_cast(frac_[2]), static_cast(frac_[3]))}; @@ -75,8 +75,8 @@ const float *Resample_(const InterpState*, const float *RESTRIC * four samples, so the lowest element is the next position to * resample. */ - src += static_cast(_mm_cvtsi128_si32(pos4)); - frac = static_cast(_mm_cvtsi128_si32(frac4)); + src += static_cast(_mm_cvtsi128_si32(pos4)); + frac = static_cast(_mm_cvtsi128_si32(frac4)); do { *(dst_iter++) = lerp(src[0], src[1], static_cast(frac) * (1.0f/MixerFracOne)); -- cgit v1.2.3