From 13c1d7efb7141aee93d32a60c0e609e61a64f550 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 24 Jan 2021 02:07:39 -0800 Subject: Store buffer info in the queue entry --- alc/effects/echo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/effects/echo.cpp') diff --git a/alc/effects/echo.cpp b/alc/effects/echo.cpp index b84e501a..f782055f 100644 --- a/alc/effects/echo.cpp +++ b/alc/effects/echo.cpp @@ -57,7 +57,7 @@ struct EchoState final : public EffectState { alignas(16) float mTempBuffer[2][BufferLineSize]; - void deviceUpdate(const ALCdevice *device, const BufferStorage *buffer) override; + void deviceUpdate(const ALCdevice *device, const Buffer &buffer) override; void update(const ALCcontext *context, const EffectSlot *slot, const EffectProps *props, const EffectTarget target) override; void process(const size_t samplesToDo, const al::span samplesIn, @@ -66,7 +66,7 @@ struct EchoState final : public EffectState { DEF_NEWDEL(EchoState) }; -void EchoState::deviceUpdate(const ALCdevice *Device, const BufferStorage* /*buffer*/) +void EchoState::deviceUpdate(const ALCdevice *Device, const Buffer&) { const auto frequency = static_cast(Device->Frequency); -- cgit v1.2.3