diff options
author | Chris Robinson <[email protected]> | 2019-08-20 09:31:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-20 09:31:08 -0700 |
commit | a3a295f6dc9cba540ae8f41eef33b7b955b39ef6 (patch) | |
tree | 68c38faa4888660719212e3dec498a30788f878f /alc/effects | |
parent | a7f078927d76b91ee01dece2852c6a55b23aeb22 (diff) |
Try to fix span construction for MSVC
Diffstat (limited to 'alc/effects')
-rw-r--r-- | alc/effects/reverb.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<float> tmpspan{mTempLine.begin(), mTempLine.begin()+todo}; + const al::span<float> 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<float> tmpspan{mTempLine.begin(), mTempLine.begin()+todo}; + const al::span<float> 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<float> tmpspan{mTempLine.begin(), mTempLine.begin()+samplesToDo}; + const al::span<float> tmpspan{mTempLine.data(), mTempLine.data()+samplesToDo}; for(size_t c{0u};c < NUM_LINES;c++) { std::fill(tmpspan.begin(), tmpspan.end(), 0.0f); |