aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-04 22:43:48 -0800
committerChris Robinson <[email protected]>2019-01-05 00:23:06 -0800
commit641bbf075d741cbe6cdf0c361a9d0ba84a562796 (patch)
treecd9c16913198299fb8a08041ef51fee95115ee70 /Alc/bformatdec.h
parent6d7e8cf8b0ab87e913ceda64cf1ad13063d21dcf (diff)
Enable simplified upsampling for AmbiUpsampler
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r--Alc/bformatdec.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h
index 9c7ce7a7..144c22a2 100644
--- a/Alc/bformatdec.h
+++ b/Alc/bformatdec.h
@@ -51,7 +51,8 @@ public:
/* Stand-alone first-order upsampler. Kept here because it shares some stuff
- * with bformatdec. Assumes a periphonic (4-channel) input mix!
+ * with bformatdec. Assumes a periphonic (4-channel) input mix! If output is
+ * B-Format, it must also be periphonic.
*/
class AmbiUpsampler {
public:
@@ -60,6 +61,8 @@ public:
private:
alignas(16) ALfloat mSamples[sNumBands][BUFFERSIZE];
+ bool mSimpleUp;
+ BiquadFilter mShelf[4];
struct {
BandSplitter XOver;
std::array<std::array<ALfloat,MAX_OUTPUT_CHANNELS>,sNumBands> Gains;