aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-08 18:34:45 -0800
committerChris Robinson <[email protected]>2019-01-08 18:34:45 -0800
commit0763dfa9544e6d1013641d3c76d321e7aab74b7d (patch)
treead4b4f4a45b469609859e19721494f0741fda4bf /Alc/bformatdec.h
parentedba7da8ab796df52c2963dd287c37eecc548aff (diff)
Apply the all-pass separately from the upsampling mix
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r--Alc/bformatdec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h
index f807808d..2f7ef612 100644
--- a/Alc/bformatdec.h
+++ b/Alc/bformatdec.h
@@ -32,11 +32,11 @@ class BFormatDec {
std::array<ALfloat,BUFFERSIZE> *mSamplesHF;
std::array<ALfloat,BUFFERSIZE> *mSamplesLF;
+ SplitterAllpass mUpAllpass[MAX_OUTPUT_CHANNELS];
struct {
BandSplitter Splitter;
ALfloat Gains[sNumBands];
} mUpsampler[4];
- SplitterAllpass mUpAllpass[MAX_OUTPUT_CHANNELS];
ALsizei mNumChannels;
ALboolean mDualBand;
@@ -64,12 +64,12 @@ class AmbiUpsampler {
static constexpr size_t sLFBand{1};
static constexpr size_t sNumBands{2};
+ SplitterAllpass mAllpass[MAX_OUTPUT_CHANNELS];
alignas(16) ALfloat mSamples[sNumBands][BUFFERSIZE];
struct {
BandSplitter Splitter;
ALfloat Gains[sNumBands];
} mInput[4];
- SplitterAllpass mAllpass[MAX_OUTPUT_CHANNELS];
public:
void reset(const ALsizei out_order, const ALfloat xover_norm);