aboutsummaryrefslogtreecommitdiffstats
path: root/alc/bformatdec.h
diff options
context:
space:
mode:
Diffstat (limited to 'alc/bformatdec.h')
-rw-r--r--alc/bformatdec.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/alc/bformatdec.h b/alc/bformatdec.h
index 6d0bf4e6..dbde90c8 100644
--- a/alc/bformatdec.h
+++ b/alc/bformatdec.h
@@ -24,8 +24,10 @@ class BFormatDec {
static constexpr size_t sLFBand{1};
static constexpr size_t sNumBands{2};
+ bool mDualBand{false};
ALuint mEnabled{0u}; /* Bitfield of enabled channels. */
+ ALuint mNumChannels{0u};
union MatrixU {
ALfloat Dual[MAX_OUTPUT_CHANNELS][sNumBands][MAX_AMBI_CHANNELS];
ALfloat Single[MAX_OUTPUT_CHANNELS][MAX_AMBI_CHANNELS];
@@ -39,9 +41,6 @@ class BFormatDec {
FloatBufferLine *mSamplesHF{nullptr};
FloatBufferLine *mSamplesLF{nullptr};
- ALuint mNumChannels{0u};
- bool mDualBand{false};
-
public:
BFormatDec(const AmbDecConf *conf, const bool allow_2band, const ALuint inchans,
const ALuint srate, const ALsizei (&chanmap)[MAX_OUTPUT_CHANNELS]);