diff options
author | Chris Robinson <[email protected]> | 2019-08-26 09:16:20 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-26 09:16:20 -0700 |
commit | 7dbf69afa270417c28605a265cc2ec0a7c4fc939 (patch) | |
tree | ff6af7e2f556ecace074ef1ee968f088b5de2094 /alc/effects/chorus.cpp | |
parent | 12e6dc0cced98d8d4379dbdaa922381920d32df2 (diff) |
Use a span for effect state input
Diffstat (limited to 'alc/effects/chorus.cpp')
-rw-r--r-- | alc/effects/chorus.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/chorus.cpp b/alc/effects/chorus.cpp index 37e29b8e..0d59c338 100644 --- a/alc/effects/chorus.cpp +++ b/alc/effects/chorus.cpp @@ -111,7 +111,7 @@ struct ChorusState final : public EffectState { ALboolean deviceUpdate(const ALCdevice *device) override; void update(const ALCcontext *context, const ALeffectslot *slot, const EffectProps *props, const EffectTarget target) override; - void process(const size_t samplesToDo, const FloatBufferLine *RESTRICT samplesIn, const ALsizei numInput, const al::span<FloatBufferLine> samplesOut) override; + void process(const size_t samplesToDo, const al::span<const FloatBufferLine> samplesIn, const al::span<FloatBufferLine> samplesOut) override; DEF_NEWDEL(ChorusState) }; @@ -207,7 +207,7 @@ void ChorusState::update(const ALCcontext *Context, const ALeffectslot *Slot, co } } -void ChorusState::process(const size_t samplesToDo, const FloatBufferLine *RESTRICT samplesIn, const ALsizei /*numInput*/, const al::span<FloatBufferLine> samplesOut) +void ChorusState::process(const size_t samplesToDo, const al::span<const FloatBufferLine> samplesIn, const al::span<FloatBufferLine> samplesOut) { const auto bufmask = static_cast<ALsizei>(mSampleBuffer.size()-1); const ALfloat feedback{mFeedback}; |