diff options
author | David Robillard <d@drobilla.net> | 2009-11-22 05:13:47 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-11-22 05:13:47 +0000 |
commit | 1745a63b874c296253a27ca7ad95d3a7b17822f7 (patch) | |
tree | 63bb78f0c34372f70634ea6122d83ed07019dc88 /src/engine/LV2EventBuffer.cpp | |
parent | e479da3c26d41e977cf55b8e2355db45991be09f (diff) | |
download | ingen-1745a63b874c296253a27ca7ad95d3a7b17822f7.tar.gz ingen-1745a63b874c296253a27ca7ad95d3a7b17822f7.tar.bz2 ingen-1745a63b874c296253a27ca7ad95d3a7b17822f7.zip |
Execute cross-context events in correct increasing time order.
Propagate value changes / message sends breadth first instead of deptch first.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2282 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/LV2EventBuffer.cpp')
-rw-r--r-- | src/engine/LV2EventBuffer.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/engine/LV2EventBuffer.cpp b/src/engine/LV2EventBuffer.cpp index 20df73c4..cb157368 100644 --- a/src/engine/LV2EventBuffer.cpp +++ b/src/engine/LV2EventBuffer.cpp @@ -134,6 +134,19 @@ LV2EventBuffer::get_object() const } +/** Get the event currently pointed to, or NULL if invalid. + */ +LV2_Event* +LV2EventBuffer::get_event() const +{ + if (lv2_event_is_valid(&_iter)) { + uint8_t* data; + return lv2_event_get(&_iter, &data); + } + return NULL; +} + + /** Append an event to the buffer. * * \a timestamp must be >= the latest event in the buffer. |