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/compressor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/effects/compressor.cpp') diff --git a/alc/effects/compressor.cpp b/alc/effects/compressor.cpp index 4e2f2098..393bb93f 100644 --- a/alc/effects/compressor.cpp +++ b/alc/effects/compressor.cpp @@ -49,7 +49,7 @@ struct CompressorState final : public EffectState { float mEnvFollower{1.0f}; - 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, @@ -58,7 +58,7 @@ struct CompressorState final : public EffectState { DEF_NEWDEL(CompressorState) }; -void CompressorState::deviceUpdate(const ALCdevice *device, const BufferStorage* /*buffer*/) +void CompressorState::deviceUpdate(const ALCdevice *device, const Buffer&) { /* Number of samples to do a full attack and release (non-integer sample * counts are okay). -- cgit v1.2.3