diff options
author | Chris Robinson <[email protected]> | 2019-05-29 23:06:24 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-05-29 23:06:24 -0700 |
commit | dbdf516dbf628c65d4115a00c78f5679308a0573 (patch) | |
tree | d0dbef5d52259e47385b8a98b1d04220475e6e12 /OpenAL32 | |
parent | 2909f263fd1a2e7122b0345c6d11209084815fd1 (diff) |
Use a span for the voice's buffer references
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index b6914c37..cb0b675c 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -265,8 +265,7 @@ struct ALvoice { int FilterType; DirectParams Params[MAX_INPUT_CHANNELS]; - FloatBufferLine *Buffer; - ALsizei Channels; + al::span<FloatBufferLine> Buffer; ALsizei ChannelsPerOrder[MAX_AMBI_ORDER+1]; } mDirect; @@ -274,8 +273,7 @@ struct ALvoice { int FilterType; SendParams Params[MAX_INPUT_CHANNELS]; - FloatBufferLine *Buffer; - ALsizei Channels; + al::span<FloatBufferLine> Buffer; }; al::FlexArray<SendData> mSend; |