diff options
author | Chris Robinson <[email protected]> | 2019-01-07 21:48:48 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-08 17:21:22 -0800 |
commit | edba7da8ab796df52c2963dd287c37eecc548aff (patch) | |
tree | 138558b1b0b7e7043fe7472c09e21a4b30f82c22 /Alc/bformatdec.h | |
parent | 0c3662d8b2c82de02f1624c310803def9ddd25ab (diff) |
Avoid macros for indexing HF and LF fequency bands
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r-- | Alc/bformatdec.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h index e0c31b56..f807808d 100644 --- a/Alc/bformatdec.h +++ b/Alc/bformatdec.h @@ -13,10 +13,10 @@ struct AmbDecConf; using ChannelDec = ALfloat[MAX_AMBI_COEFFS]; class BFormatDec { -public: + static constexpr size_t sHFBand{0}; + static constexpr size_t sLFBand{1}; static constexpr size_t sNumBands{2}; -private: ALuint mEnabled; /* Bitfield of enabled channels. */ union MatrixU { @@ -60,7 +60,9 @@ public: * with bformatdec. */ class AmbiUpsampler { - static constexpr ALsizei sNumBands{2}; + static constexpr size_t sHFBand{0}; + static constexpr size_t sLFBand{1}; + static constexpr size_t sNumBands{2}; alignas(16) ALfloat mSamples[sNumBands][BUFFERSIZE]; struct { |