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/dedicated.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/effects/dedicated.cpp') diff --git a/alc/effects/dedicated.cpp b/alc/effects/dedicated.cpp index 876b14ef..9fee7fd7 100644 --- a/alc/effects/dedicated.cpp +++ b/alc/effects/dedicated.cpp @@ -37,7 +37,7 @@ struct DedicatedState final : public EffectState { float mTargetGains[MAX_OUTPUT_CHANNELS]; - 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, @@ -46,7 +46,7 @@ struct DedicatedState final : public EffectState { DEF_NEWDEL(DedicatedState) }; -void DedicatedState::deviceUpdate(const ALCdevice*, const BufferStorage*) +void DedicatedState::deviceUpdate(const ALCdevice*, const Buffer&) { std::fill(std::begin(mCurrentGains), std::end(mCurrentGains), 0.0f); } -- cgit v1.2.3