From f82fca2c6a051d9dd067e62c9d01a5e0d05480e6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 5 May 2020 16:56:25 -0700 Subject: Fix the dual-band decoder --- alc/bformatdec.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'alc') 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 OutBuffer, if(mDualBand) { - const al::span hfSamples{mSamples[sHFBand].data(), SamplesToDo}; - const al::span lfSamples{mSamples[sLFBand].data(), SamplesToDo}; + const al::span hfSamples{mSamples[sHFBand].data(), SamplesToDo}; + const al::span 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; } -- cgit v1.2.3