diff options
author | Chris Robinson <[email protected]> | 2020-04-30 17:03:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-04-30 17:03:56 -0700 |
commit | 6bc3ae178e929cbb9f984b482b3a1732b14428dc (patch) | |
tree | 35b61c706988655d68493577004d84e8fe267caa /alc/mixer/mixer_c.cpp | |
parent | 972869f76fe854a57e5cc2ffa38d58ddae9d95d2 (diff) |
Use a more efficient type for holding the IrSize
Diffstat (limited to 'alc/mixer/mixer_c.cpp')
-rw-r--r-- | alc/mixer/mixer_c.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/mixer/mixer_c.cpp b/alc/mixer/mixer_c.cpp index 9858a4b4..8a58ff10 100644 --- a/alc/mixer/mixer_c.cpp +++ b/alc/mixer/mixer_c.cpp @@ -84,11 +84,11 @@ const float *DoResample(const InterpState *state, const float *RESTRICT src, ALu return dst.data(); } -inline void ApplyCoeffs(float2 *RESTRICT Values, const ALuint IrSize, const HrirArray &Coeffs, - const float left, const float right) +inline void ApplyCoeffs(float2 *RESTRICT Values, const uint_fast32_t IrSize, + const HrirArray &Coeffs, const float left, const float right) { ASSUME(IrSize >= MIN_IR_LENGTH); - for(ALuint c{0};c < IrSize;++c) + for(size_t c{0};c < IrSize;++c) { Values[c][0] += Coeffs[c][0] * left; Values[c][1] += Coeffs[c][1] * right; |