From 9062721fa84322d794e9676974ad1a3e82913b91 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 4 Apr 2023 10:15:54 -0700 Subject: Simplify effect state buffer handling some --- 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 7f9edf82..a69529dc 100644 --- a/alc/effects/echo.cpp +++ b/alc/effects/echo.cpp @@ -69,7 +69,7 @@ struct EchoState final : public EffectState { alignas(16) float mTempBuffer[2][BufferLineSize]; - void deviceUpdate(const DeviceBase *device, const Buffer &buffer) override; + void deviceUpdate(const DeviceBase *device, const BufferStorage *buffer) override; void update(const ContextBase *context, const EffectSlot *slot, const EffectProps *props, const EffectTarget target) override; void process(const size_t samplesToDo, const al::span samplesIn, @@ -78,7 +78,7 @@ struct EchoState final : public EffectState { DEF_NEWDEL(EchoState) }; -void EchoState::deviceUpdate(const DeviceBase *Device, const Buffer&) +void EchoState::deviceUpdate(const DeviceBase *Device, const BufferStorage*) { const auto frequency = static_cast(Device->Frequency); -- cgit v1.2.3