From 191b78d09365112a868ddaf3f813ef2b5bc2c252 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 2 Aug 2007 07:23:56 +0000 Subject: Implement MIDI copying, fixes MIDI patching from patch input -> patch output (fix ticket 70). git-svn-id: http://svn.drobilla.net/lad/ingen@670 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/OSCBuffer.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libs/engine/OSCBuffer.hpp') diff --git a/src/libs/engine/OSCBuffer.hpp b/src/libs/engine/OSCBuffer.hpp index 1e7e048a..dc529d30 100644 --- a/src/libs/engine/OSCBuffer.hpp +++ b/src/libs/engine/OSCBuffer.hpp @@ -32,7 +32,7 @@ public: ~OSCBuffer() { } void clear() { lv2_osc_buffer_clear(_buf); } - void reset(SampleCount nframs) {} + void reset(SampleCount nframs) const {} void prepare_read(SampleCount nframes); void prepare_write(SampleCount nframes); @@ -40,6 +40,8 @@ public: bool is_joined_to(Buffer* buf) const; bool join(Buffer* buf); void unjoin(); + + void copy(const Buffer* src, size_t start_sample, size_t end_sample); uint32_t this_nframes() const { return _this_nframes; } -- cgit v1.2.1