diff options
author | Chris Robinson <[email protected]> | 2020-05-05 16:56:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-05-05 16:56:25 -0700 |
commit | f82fca2c6a051d9dd067e62c9d01a5e0d05480e6 (patch) | |
tree | a13da1bbc928506a740b167b63907f987defffc1 /alc | |
parent | ee82db3966acf728935d2a9d26bb5b2ade62e368 (diff) |
Fix the dual-band decoder
Diffstat (limited to 'alc')
-rw-r--r-- | alc/bformatdec.cpp | 10 |
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; } |