aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-08 02:17:08 -0700
committerChris Robinson <[email protected]>2019-06-08 02:17:08 -0700
commit1569b79c5d133717c4913cfde7cdbf0e7c64f270 (patch)
tree56b4f075dacf82689cd29cb401a245f5ee0df866 /OpenAL32/Include
parent91b7e8142caf297b97d6b403ee79ba2dcbcda09f (diff)
Fix for GCC 5.4
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h6
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 {