summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/MidiBuffer.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-19 06:29:58 +0000
committerDavid Robillard <d@drobilla.net>2007-09-19 06:29:58 +0000
commitcfbcb812e96b740e16510bf736cef688d8ebe986 (patch)
tree8fb96f95c1adb87116bfcd6439897e6970948456 /src/libs/engine/MidiBuffer.hpp
parent36b22fe2bea643d7d4ff69764016ae5be9c6de69 (diff)
downloadingen-cfbcb812e96b740e16510bf736cef688d8ebe986.tar.gz
ingen-cfbcb812e96b740e16510bf736cef688d8ebe986.tar.bz2
ingen-cfbcb812e96b740e16510bf736cef688d8ebe986.zip
Fix LV2 dynamic poly crash.
Update client-side patch model on polyphony change. git-svn-id: http://svn.drobilla.net/lad/ingen@726 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/MidiBuffer.hpp')
-rw-r--r--src/libs/engine/MidiBuffer.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/engine/MidiBuffer.hpp b/src/libs/engine/MidiBuffer.hpp
index 87504833..15548625 100644
--- a/src/libs/engine/MidiBuffer.hpp
+++ b/src/libs/engine/MidiBuffer.hpp
@@ -42,6 +42,9 @@ public:
uint32_t event_count() const { return _buf->event_count; }
inline LV2_MIDI* local_data() { return _local_buf; }
+
+ inline void* raw_data() const
+ { return ((_joined_buf != NULL) ? _joined_buf->raw_data() : _buf); }
inline LV2_MIDI* data()
{ return ((_joined_buf != NULL) ? _joined_buf->data() : _buf); }