diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2019-05-29 21:58:37 -0700 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2019-05-29 21:58:37 -0700 |
commit | 893ffe9a84d497d38e6e472b0cffbd9c37e0c366 (patch) | |
tree | e86cb9f28857507a54aad958e8c4a9dd361c3e28 /Alc/effects/fshifter.cpp | |
parent | 8af7b4c6e0ddaf4d66455702a7ede0c9036f3825 (diff) |
Use span<FloatBufferLine> for MixSamples
Diffstat (limited to 'Alc/effects/fshifter.cpp')
-rw-r--r-- | Alc/effects/fshifter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/fshifter.cpp b/Alc/effects/fshifter.cpp index 0b8d33e4..56068b06 100644 --- a/Alc/effects/fshifter.cpp +++ b/Alc/effects/fshifter.cpp @@ -198,8 +198,8 @@ void FshifterState::process(const ALsizei samplesToDo, const FloatBufferLine *RE } /* Now, mix the processed sound data to the output. */ - MixSamples(BufferOut, numOutput, &reinterpret_cast<ALfloat(&)[BUFFERSIZE]>(samplesOut[0]), - mCurrentGains, mTargetGains, maxi(samplesToDo, 512), 0, samplesToDo); + MixSamples(BufferOut, {samplesOut, samplesOut+numOutput}, mCurrentGains, mTargetGains, + maxi(samplesToDo, 512), 0, samplesToDo); } |