summaryrefslogtreecommitdiffstats
path: root/src/engine/EventBuffer.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-16 00:30:35 +0000
committerDavid Robillard <d@drobilla.net>2009-11-16 00:30:35 +0000
commit3d89115a67a9c947a28539ffdd2399808a53279b (patch)
tree826b900de3979eed9c31aae0d3ac560d39b53460 /src/engine/EventBuffer.hpp
parent597fa9212f27d2448c0cdd20fbf616928c662cc1 (diff)
downloadingen-3d89115a67a9c947a28539ffdd2399808a53279b.tar.gz
ingen-3d89115a67a9c947a28539ffdd2399808a53279b.tar.bz2
ingen-3d89115a67a9c947a28539ffdd2399808a53279b.zip
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
Diffstat (limited to 'src/engine/EventBuffer.hpp')
-rw-r--r--src/engine/EventBuffer.hpp11
1 files changed, 4 insertions, 7 deletions
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
};