From 507cbfa0271e6183a06c5b2eec3465bc37a108e5 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 26 Dec 2020 12:33:00 -0800 Subject: Combine EffectState::deviceUpdate with setBuffer --- 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 ddffc790..8d65eedb 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) override; + void deviceUpdate(const ALCdevice *device, const BufferStorage *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) +void CompressorState::deviceUpdate(const ALCdevice *device, const BufferStorage* /*buffer*/) { /* Number of samples to do a full attack and release (non-integer sample * counts are okay). -- cgit v1.2.3