diff options
author | Chris Robinson <[email protected]> | 2020-08-28 00:44:55 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-08-28 00:44:55 -0700 |
commit | 986a58d5b4936ec6bd4dca7769d291e5a5961f75 (patch) | |
tree | af23aa17ee0250836417a5354cde318afece9c81 /alc/effects/base.h | |
parent | 1f486f820e97fd5ce1da40a87aa3b743800fb5b0 (diff) |
Pass a BufferStorage to EffectState::createBuffer
Diffstat (limited to 'alc/effects/base.h')
-rw-r--r-- | alc/effects/base.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/alc/effects/base.h b/alc/effects/base.h index e662d69c..251a066f 100644 --- a/alc/effects/base.h +++ b/alc/effects/base.h @@ -8,10 +8,10 @@ #include "almalloc.h" #include "alspan.h" #include "atomic.h" -#include "buffer_storage.h" #include "intrusive_ptr.h" struct ALeffectslot; +struct BufferStorage; union EffectProps { @@ -173,11 +173,10 @@ struct EffectState : public al::intrusive_ref<EffectState> { virtual void deviceUpdate(const ALCdevice *device) = 0; /* Implementations are currently required to copy the buffer data if they * wish to hold on to it, as there's no guarantee the buffer won't be - * detached and deleted or altered during a mix. + * deleted or altered during a mix. */ virtual EffectBufferBase *createBuffer(const ALCdevice */*device*/, - const al::byte */*sampleData*/, ALuint /*sampleRate*/, FmtType /*sampleType*/, - FmtChannels /*channelType*/, ALuint /*numSamples*/) + const BufferStorage &/*buffer*/) { return nullptr; } virtual void update(const ALCcontext *context, const ALeffectslot *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; |