From cfbcb812e96b740e16510bf736cef688d8ebe986 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 19 Sep 2007 06:29:58 +0000 Subject: 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 --- src/libs/engine/MidiBuffer.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libs/engine/MidiBuffer.hpp') 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); } -- cgit v1.2.1