From 88a8bf903b08cd93ea7028a4c726f39e4cde7c79 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 25 Aug 2019 15:36:40 -0700 Subject: Use size_t for the post-process sample length --- alc/bformatdec.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'alc/bformatdec.cpp') 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 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 OutBuffer, { if LIKELY(enabled&1) { - const al::span outspan{outbuf.data(), outbuf.data()+SamplesToDo}; + const al::span 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 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; -- cgit v1.2.3