From cf63c971c2a8ee8cc2ddcddb52ce8135cd29619b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 13 Oct 2007 20:35:29 +0000 Subject: Fix sub-patch MIDI I/O. Make buffer 'joining' (zero-copy connections) significantly less retarded. git-svn-id: http://svn.drobilla.net/lad/ingen@882 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/OSCBuffer.hpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/libs/engine/OSCBuffer.hpp') diff --git a/src/libs/engine/OSCBuffer.hpp b/src/libs/engine/OSCBuffer.hpp index 31371641..b939b764 100644 --- a/src/libs/engine/OSCBuffer.hpp +++ b/src/libs/engine/OSCBuffer.hpp @@ -38,7 +38,6 @@ public: void prepare_read(SampleCount nframes); void prepare_write(SampleCount nframes); - bool is_joined_to(Buffer* buf) const; bool join(Buffer* buf); void unjoin(); @@ -47,14 +46,10 @@ public: uint32_t this_nframes() const { return _this_nframes; } uint32_t event_count() const { return _buf->message_count; } - inline void* raw_data() const - { return ((_joined_buf != NULL) ? _joined_buf->raw_data() : _buf); } - - inline LV2OSCBuffer* data() - { return ((_joined_buf != NULL) ? _joined_buf->data() : _buf); } - - inline const LV2OSCBuffer* data() const - { return ((_joined_buf != NULL) ? _joined_buf->data() : _buf); } + inline void* raw_data() { return _buf; } + inline const void* raw_data() const { return _buf; } + inline LV2OSCBuffer* data() { return _buf; } + inline const LV2OSCBuffer* data() const { return _buf; } private: LV2OSCBuffer* const _buf; -- cgit v1.2.1