diff options
author | Chris Robinson <[email protected]> | 2018-04-18 20:39:52 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-04-18 20:39:52 -0700 |
commit | f96a8fe369e317a6203bec5e814761fe8a12531e (patch) | |
tree | 240fae4a5a1072e3721e6976058bc50d1a766c9f /Alc/mixer/mixer_sse2.c | |
parent | 150586d7fef722da17b96697ca0c1f78b2d10eb4 (diff) |
Add some ASSUME statements that ensure mixing at least 1 sample
Diffstat (limited to 'Alc/mixer/mixer_sse2.c')
-rw-r--r-- | Alc/mixer/mixer_sse2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/mixer/mixer_sse2.c b/Alc/mixer/mixer_sse2.c index 19d07719..4aeb6fc4 100644 --- a/Alc/mixer/mixer_sse2.c +++ b/Alc/mixer/mixer_sse2.c @@ -40,6 +40,8 @@ const ALfloat *Resample_lerp_SSE2(const InterpState* UNUSED(state), ALint pos; ALsizei i; + ASSUME(numsamples > 0); + InitiatePositionArrays(frac, increment, frac_.i, pos_.i, 4); frac4 = _mm_castps_si128(_mm_load_ps(frac_.f)); |