aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-07 21:48:48 -0800
committerChris Robinson <[email protected]>2019-01-08 17:21:22 -0800
commitedba7da8ab796df52c2963dd287c37eecc548aff (patch)
tree138558b1b0b7e7043fe7472c09e21a4b30f82c22 /Alc/bformatdec.h
parent0c3662d8b2c82de02f1624c310803def9ddd25ab (diff)
Avoid macros for indexing HF and LF fequency bands
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r--Alc/bformatdec.h8
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 {