aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-04 22:17:30 -0800
committerChris Robinson <[email protected]>2019-01-04 22:17:30 -0800
commit6d7e8cf8b0ab87e913ceda64cf1ad13063d21dcf (patch)
tree68d6c481bf140293608ba2ba2495b450005f1ed1 /Alc/bformatdec.h
parent0a6748156d61b3bfe71766f208002dda791a3924 (diff)
Simplify the BFormatDec upsampler
Since the only difference applied is a scalar on the high-frequency response, a B-Format-to-B-Format transcode can be accomplished with a high-shelf filter. A similar thing can be done with AmbiUpsampler, but only when outputing to periphonic B-Format.
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 7b5d1cd2..9c7ce7a7 100644
--- a/Alc/bformatdec.h
+++ b/Alc/bformatdec.h
@@ -2,6 +2,7 @@
#define BFORMATDEC_H
#include "alMain.h"
+#include "filters/biquad.h"
#include "filters/splitter.h"
#include "almalloc.h"
@@ -30,8 +31,7 @@ private:
std::array<ALfloat,BUFFERSIZE> *mSamplesLF;
struct {
- BandSplitter XOver;
- ALfloat Gains[sNumBands];
+ BiquadFilter Shelf;
} mUpSampler[4];
ALsizei mNumChannels;