aboutsummaryrefslogtreecommitdiffstats
path: root/core/effects
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-04-04 10:15:54 -0700
committerChris Robinson <[email protected]>2023-04-04 10:15:54 -0700
commit9062721fa84322d794e9676974ad1a3e82913b91 (patch)
treefcaa5a57eca644c66ee6802a19e0614be8d12c0e /core/effects
parent2c82778f93a2104632702b04bf6f1c6a15c53612 (diff)
Simplify effect state buffer handling some
Diffstat (limited to 'core/effects')
-rw-r--r--core/effects/base.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/effects/base.h b/core/effects/base.h
index 3094f627..0d01044f 100644
--- a/core/effects/base.h
+++ b/core/effects/base.h
@@ -178,17 +178,12 @@ struct EffectTarget {
};
struct EffectState : public al::intrusive_ref<EffectState> {
- struct Buffer {
- const BufferStorage *storage;
- al::span<const al::byte> samples;
- };
-
al::span<FloatBufferLine> mOutTarget;
virtual ~EffectState() = default;
- virtual void deviceUpdate(const DeviceBase *device, const Buffer &buffer) = 0;
+ virtual void deviceUpdate(const DeviceBase *device, const BufferStorage *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,