aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-05 16:56:25 -0700
committerChris Robinson <[email protected]>2020-05-05 16:56:25 -0700
commitf82fca2c6a051d9dd067e62c9d01a5e0d05480e6 (patch)
treea13da1bbc928506a740b167b63907f987defffc1 /alc
parentee82db3966acf728935d2a9d26bb5b2ade62e368 (diff)
Fix the dual-band decoder
Diffstat (limited to 'alc')
-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;
}