diff options
author | Chris Robinson <[email protected]> | 2019-06-08 02:17:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-08 02:17:08 -0700 |
commit | 1569b79c5d133717c4913cfde7cdbf0e7c64f270 (patch) | |
tree | 56b4f075dacf82689cd29cb401a245f5ee0df866 /OpenAL32/Include/alMain.h | |
parent | 91b7e8142caf297b97d6b403ee79ba2dcbcda09f (diff) |
Fix for GCC 5.4
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r-- | OpenAL32/Include/alMain.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 962b8e15..5dc76552 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -263,14 +263,14 @@ public: }; private: - DistData mChannel[MAX_OUTPUT_CHANNELS]; + std::array<DistData,MAX_OUTPUT_CHANNELS> mChannels; al::vector<ALfloat,16> mSamples; public: void setSampleCount(size_t new_size) { mSamples.resize(new_size); } void clear() noexcept { - for(auto &chan : mChannel) + for(auto &chan : mChannels) { chan.Gain = 1.0f; chan.Length = 0; @@ -282,7 +282,7 @@ public: ALfloat *getSamples() noexcept { return mSamples.data(); } - al::span<DistData,MAX_OUTPUT_CHANNELS> as_span() { return mChannel; } + al::span<DistData,MAX_OUTPUT_CHANNELS> as_span() { return mChannels; } }; struct BFChannelConfig { |