aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-07-04 15:02:12 -0700
committerChris Robinson <[email protected]>2019-07-04 15:02:12 -0700
commit3fe5ef272f436db82beeeee3ad123029e4d219b6 (patch)
treed7f79f3e99ec15bc8474050c922f227e888f24bd /OpenAL32/Include/alMain.h
parent729ffe02d6ab05dc8c62e8332ef1878bbfbdf756 (diff)
Use a span for MixParams
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index d7c22546..2237d3c8 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -308,10 +308,9 @@ using FloatBufferLine = std::array<float,BUFFERSIZE>;
struct MixParams {
/* Coefficient channel mapping for mixing to the buffer. */
- std::array<BFChannelConfig,MAX_OUTPUT_CHANNELS> AmbiMap;
+ std::array<BFChannelConfig,MAX_OUTPUT_CHANNELS> AmbiMap{};
- FloatBufferLine *Buffer{nullptr};
- ALuint NumChannels{0u};
+ al::span<FloatBufferLine> Buffer;
};
struct RealMixParams {