diff options
author | Chris Robinson <[email protected]> | 2018-12-08 14:22:20 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-08 14:22:20 -0800 |
commit | c9f5617f06503d951b3ed808cf07fb6362a7f8d1 (patch) | |
tree | 69fa576f29e7394aa76ebf08453c2d06d4bdbb6a /Alc/bformatdec.h | |
parent | fc8da0c16b34a964c637c721ff944e8e6a5f3277 (diff) |
Avoid several uses of memset
Diffstat (limited to 'Alc/bformatdec.h')
-rw-r--r-- | Alc/bformatdec.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/bformatdec.h b/Alc/bformatdec.h index 73754be8..f2cdcdfb 100644 --- a/Alc/bformatdec.h +++ b/Alc/bformatdec.h @@ -41,7 +41,7 @@ public: private: ALuint mEnabled; /* Bitfield of enabled channels. */ - union { + union MatrixU { alignas(16) ALfloat Dual[MAX_OUTPUT_CHANNELS][sNumBands][MAX_AMBI_COEFFS]; alignas(16) ALfloat Single[MAX_OUTPUT_CHANNELS][MAX_AMBI_COEFFS]; } mMatrix; @@ -89,7 +89,7 @@ private: BandSplitter mXOver[4]; - ALfloat mGains[4][MAX_OUTPUT_CHANNELS][sNumBands]; + std::array<std::array<std::array<ALfloat,sNumBands>,MAX_OUTPUT_CHANNELS>,4> mGains; public: void reset(const ALCdevice *device, const ALfloat w_scale, const ALfloat xyz_scale); |