From 3d89115a67a9c947a28539ffdd2399808a53279b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Nov 2009 00:30:35 +0000 Subject: Rework objects extension to have "value ports" and "message ports". Make audio and control buffers in ingen actually object buffers (towards interop). Overhaul the hell out of ingen buffer and mixing stuff. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2266 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/EventBuffer.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/engine/EventBuffer.hpp') diff --git a/src/engine/EventBuffer.hpp b/src/engine/EventBuffer.hpp index cafa71bd..b5287f63 100644 --- a/src/engine/EventBuffer.hpp +++ b/src/engine/EventBuffer.hpp @@ -31,13 +31,10 @@ class EventBuffer : public Buffer { public: EventBuffer(size_t capacity); - bool join(Buffer* buf); - void unjoin(); - void clear() { _buf->reset(); } - void* raw_data() { return _buf; } - const void* raw_data() const { return _buf; } + void* port_data(Shared::DataType port_type) { return _buf; } + const void* port_data(Shared::DataType port_type) const { return _buf; } void rewind() const { _buf->rewind(); } @@ -45,6 +42,7 @@ public: void prepare_write(Context& context); void copy(Context& context, const Buffer* src); + void mix(Context& contect, const Buffer* src); bool merge(const EventBuffer& a, const EventBuffer& b); bool increment() const { return _buf->increment(); } @@ -75,8 +73,7 @@ public: } private: - LV2EventBuffer* _buf; ///< Contents (maybe belong to _joined_buf) - LV2EventBuffer* _local_buf; ///< Local contents + LV2EventBuffer* _buf; ///< Contents }; -- cgit v1.2.1