From b54bb388a3dbd92518beef4bda03df5854aad1a9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 24 Apr 2021 08:28:13 -0700 Subject: Create a base the ALCdevice and ALCcontext structs A base that contains the API-agnostic data, with ALCdevice and ALCcontext being for AL-specific data. --- alc/effects/base.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'alc/effects/base.h') diff --git a/alc/effects/base.h b/alc/effects/base.h index b482bae2..64621888 100644 --- a/alc/effects/base.h +++ b/alc/effects/base.h @@ -10,6 +10,7 @@ #include "atomic.h" #include "intrusive_ptr.h" +struct ContextBase; struct EffectSlot; struct BufferStorage; @@ -175,8 +176,8 @@ struct EffectState : public al::intrusive_ref { virtual ~EffectState() = default; - virtual void deviceUpdate(const ALCdevice *device, const Buffer &buffer) = 0; - virtual void update(const ALCcontext *context, const EffectSlot *slot, + virtual void deviceUpdate(const DeviceBase *device, const Buffer &buffer) = 0; + virtual void update(const ContextBase *context, const EffectSlot *slot, const EffectProps *props, const EffectTarget target) = 0; virtual void process(const size_t samplesToDo, const al::span samplesIn, const al::span samplesOut) = 0; -- cgit v1.2.3