From a3a295f6dc9cba540ae8f41eef33b7b955b39ef6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 20 Aug 2019 09:31:08 -0700 Subject: Try to fix span construction for MSVC --- alc/effects/reverb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'alc/effects') diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp index 7f6da778..9fbff668 100644 --- a/alc/effects/reverb.cpp +++ b/alc/effects/reverb.cpp @@ -421,7 +421,7 @@ struct ReverbState final : public EffectState { ASSUME(todo > 0); /* Convert back to B-Format, and mix the results to output. */ - const al::span tmpspan{mTempLine.begin(), mTempLine.begin()+todo}; + const al::span tmpspan{mTempLine.data(), mTempLine.data()+todo}; for(size_t c{0u};c < NUM_LINES;c++) { std::fill(tmpspan.begin(), tmpspan.end(), 0.0f); @@ -445,7 +445,7 @@ struct ReverbState final : public EffectState { { ASSUME(todo > 0); - const al::span tmpspan{mTempLine.begin(), mTempLine.begin()+todo}; + const al::span tmpspan{mTempLine.data(), mTempLine.data()+todo}; for(size_t c{0u};c < NUM_LINES;c++) { std::fill(tmpspan.begin(), tmpspan.end(), 0.0f); @@ -1459,7 +1459,7 @@ void ReverbState::process(const ALsizei samplesToDo, const FloatBufferLine *REST ASSUME(offset >= 0); /* Convert B-Format to A-Format for processing. */ - const al::span tmpspan{mTempLine.begin(), mTempLine.begin()+samplesToDo}; + const al::span tmpspan{mTempLine.data(), mTempLine.data()+samplesToDo}; for(size_t c{0u};c < NUM_LINES;c++) { std::fill(tmpspan.begin(), tmpspan.end(), 0.0f); -- cgit v1.2.3