aboutsummaryrefslogtreecommitdiffstats
path: root/alc/bformatdec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/bformatdec.cpp')
-rw-r--r--alc/bformatdec.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/alc/bformatdec.cpp b/alc/bformatdec.cpp
index 6c9a6be4..458a5bb7 100644
--- a/alc/bformatdec.cpp
+++ b/alc/bformatdec.cpp
@@ -117,15 +117,15 @@ void BFormatDec::process(const al::span<FloatBufferLine> OutBuffer,
if(mDualBand)
{
- const al::span<const float> hfSamples{mSamples[sHFBand].data(), SamplesToDo};
- const al::span<const float> lfSamples{mSamples[sLFBand].data(), SamplesToDo};
+ const al::span<float> hfSamples{mSamples[sHFBand].data(), SamplesToDo};
+ const al::span<float> lfSamples{mSamples[sLFBand].data(), SamplesToDo};
for(auto &chandec : mChannelDec)
{
- chandec.mXOver.process({InSamples->data(), SamplesToDo}, mSamples[sHFBand].data(),
- mSamples[sLFBand].data());
+ chandec.mXOver.process({InSamples->data(), SamplesToDo}, hfSamples.data(),
+ lfSamples.data());
MixSamples(hfSamples, OutBuffer, chandec.mGains.Dual[sHFBand],
chandec.mGains.Dual[sHFBand], 0, 0);
- MixSamples(hfSamples, OutBuffer, chandec.mGains.Dual[sLFBand],
+ MixSamples(lfSamples, OutBuffer, chandec.mGains.Dual[sLFBand],
chandec.mGains.Dual[sLFBand], 0, 0);
++InSamples;
}