diff options
author | Chris Robinson <[email protected]> | 2019-08-19 08:02:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-19 08:02:08 -0700 |
commit | 2d0568c0484fa5abc74b084c094a325adb0bc452 (patch) | |
tree | f89b04a772ef98625bdd8cb67ebcb4ef992e0819 /alc/bformatdec.h | |
parent | a9223ae601c45c6bdc3c3001ce7b5f30141046b1 (diff) |
Allow using a variable channel stride for MixRowSamples
Diffstat (limited to 'alc/bformatdec.h')
-rw-r--r-- | alc/bformatdec.h | 5 |
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]); |