aboutsummaryrefslogtreecommitdiffstats
path: root/alc/voice.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2019-12-25 21:48:58 -0800
committerChris Robinson <chris.kcat@gmail.com>2019-12-25 21:48:58 -0800
commit3b3d3d3a03c3f39e758b3b9b41649b86314eb413 (patch)
treeac65877d89e9fc97b79ac0fcd83a290d825f4247 /alc/voice.cpp
parent06b7c63cef00a9641e7e36d972fdc3c0c78ca4b8 (diff)
Use a span for the band-splitter input
Diffstat (limited to 'alc/voice.cpp')
-rw-r--r--alc/voice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/voice.cpp b/alc/voice.cpp
index 4697cc56..ef26b630 100644
--- a/alc/voice.cpp
+++ b/alc/voice.cpp
@@ -678,15 +678,15 @@ void ALvoice::mix(const State vstate, ALCcontext *Context, const ALuint SamplesT
{Device->ResampledData, DstBufferSize})};
if((mFlags&VOICE_IS_AMBISONIC))
{
- const ALfloat hfscale{chandata.mAmbiScale};
+ const float hfscale{chandata.mAmbiScale};
/* Beware the evil const_cast. It's safe since it's pointing to
* either SourceData or ResampledData (both non-const), but the
* resample method takes the source as const float* and may
* return it without copying to output, making it currently
* unavoidable.
*/
- chandata.mAmbiSplitter.applyHfScale(const_cast<ALfloat*>(ResampledData), hfscale,
- DstBufferSize);
+ const al::span<float> samples{const_cast<float*>(ResampledData), DstBufferSize};
+ chandata.mAmbiSplitter.applyHfScale(samples, hfscale);
}
/* Now filter and mix to the appropriate outputs. */