diff options
author | Chris Robinson <[email protected]> | 2020-04-03 03:11:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-04-03 03:11:32 -0700 |
commit | d9225083b4c7fe84d7a4bbde31801be4e51f6f61 (patch) | |
tree | 25e3e4546dd091add68ef2eb5e5d81adb536af08 /alc/mixer/mixer_sse2.cpp | |
parent | 236564b54ace15b940ca5e97f44e2e7e0a8f4846 (diff) |
Avoid using ALfloat in the mixer functions
Diffstat (limited to 'alc/mixer/mixer_sse2.cpp')
-rw-r--r-- | alc/mixer/mixer_sse2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/mixer/mixer_sse2.cpp b/alc/mixer/mixer_sse2.cpp index 897cd1f7..bb9b65f2 100644 --- a/alc/mixer/mixer_sse2.cpp +++ b/alc/mixer/mixer_sse2.cpp @@ -28,8 +28,8 @@ template<> -const ALfloat *Resample_<LerpTag,SSE2Tag>(const InterpState*, const ALfloat *RESTRICT src, - ALuint frac, ALuint increment, const al::span<float> dst) +const float *Resample_<LerpTag,SSE2Tag>(const InterpState*, const float *RESTRICT src, ALuint frac, + ALuint increment, const al::span<float> dst) { const __m128i increment4{_mm_set1_epi32(static_cast<int>(increment*4))}; const __m128 fracOne4{_mm_set1_ps(1.0f/FRACTIONONE)}; @@ -79,5 +79,5 @@ const ALfloat *Resample_<LerpTag,SSE2Tag>(const InterpState*, const ALfloat *RES frac &= FRACTIONMASK; } while(dst_iter != dst.end()); } - return dst.begin(); + return dst.data(); } |