diff options
author | Chris Robinson <[email protected]> | 2019-08-25 15:36:40 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-25 15:36:40 -0700 |
commit | 88a8bf903b08cd93ea7028a4c726f39e4cde7c79 (patch) | |
tree | b24161d1c89d9335262787a8b0c7c930f2976c0e /alc/bformatdec.cpp | |
parent | e165cae3cddec51332660bdb1e69d7fa5f687e68 (diff) |
Use size_t for the post-process sample length
Diffstat (limited to 'alc/bformatdec.cpp')
-rw-r--r-- | alc/bformatdec.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/bformatdec.cpp b/alc/bformatdec.cpp index 7d681bc6..c2137b33 100644 --- a/alc/bformatdec.cpp +++ b/alc/bformatdec.cpp @@ -146,7 +146,7 @@ BFormatDec::BFormatDec(const ALuint inchans, const ALsizei chancount, void BFormatDec::process(const al::span<FloatBufferLine> OutBuffer, - const FloatBufferLine *InSamples, const ALsizei SamplesToDo) + const FloatBufferLine *InSamples, const size_t SamplesToDo) { ASSUME(SamplesToDo > 0); @@ -162,7 +162,7 @@ void BFormatDec::process(const al::span<FloatBufferLine> OutBuffer, { if LIKELY(enabled&1) { - const al::span<float> outspan{outbuf.data(), outbuf.data()+SamplesToDo}; + const al::span<float> outspan{outbuf.data(), SamplesToDo}; MixRowSamples(outspan, {(*mixmtx)[sHFBand], mNumChannels}, mSamplesHF->data(), mSamplesHF->size()); MixRowSamples(outspan, {(*mixmtx)[sLFBand], mNumChannels}, mSamplesLF->data(), @@ -179,7 +179,7 @@ void BFormatDec::process(const al::span<FloatBufferLine> OutBuffer, for(FloatBufferLine &outbuf : OutBuffer) { if LIKELY(enabled&1) - MixRowSamples({outbuf.data(), outbuf.data()+SamplesToDo}, {*mixmtx, mNumChannels}, + MixRowSamples({outbuf.data(), SamplesToDo}, {*mixmtx, mNumChannels}, InSamples->data(), InSamples->size()); ++mixmtx; enabled >>= 1; |