diff options
author | Chris Robinson <[email protected]> | 2019-09-28 16:41:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-28 19:14:27 -0700 |
commit | 00250042c819b5900e1ff3bd03285cffebd93464 (patch) | |
tree | 60172b2174d31190fead2245b341d37225b3c7af /alc/mixvoice.cpp | |
parent | 7783fa738c678ad88c8f4571f48ad0191767cbf1 (diff) |
Check MAX_RESAMPLER_PADDING properly to ensure it's large enough
Diffstat (limited to 'alc/mixvoice.cpp')
-rw-r--r-- | alc/mixvoice.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp index b701a826..c696f114 100644 --- a/alc/mixvoice.cpp +++ b/alc/mixvoice.cpp @@ -66,10 +66,6 @@ static_assert((INT_MAX>>FRACTIONBITS)/MAX_PITCH > BUFFERSIZE, "MAX_PITCH and/or BUFFERSIZE are too large for FRACTIONBITS!"); -/* BSinc24 requires up to 23 extra samples before the current position, and 24 after. */ -static_assert(!(MAX_RESAMPLER_PADDING&1) && MAX_RESAMPLER_PADDING >= 48, - "MAX_RESAMPLER_PADDING must be a multiple of two and at least 48!"); - Resampler ResamplerDefault{Resampler::Linear}; |