diff options
author | Chris Robinson <[email protected]> | 2021-04-24 08:28:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-04-24 08:28:13 -0700 |
commit | b54bb388a3dbd92518beef4bda03df5854aad1a9 (patch) | |
tree | 8cde0be5ca02b61ae81bf0c3ccdd3a2439b1923a /alc/effects/base.h | |
parent | 519672c8e54585bc6d827dd3efed943e06b3e6cd (diff) |
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.
Diffstat (limited to 'alc/effects/base.h')
-rw-r--r-- | alc/effects/base.h | 5 |
1 files changed, 3 insertions, 2 deletions
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<EffectState> { 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<const FloatBufferLine> samplesIn, const al::span<FloatBufferLine> samplesOut) = 0; |