diff options
author | David Robillard <d@drobilla.net> | 2007-08-02 07:23:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-08-02 07:23:56 +0000 |
commit | 191b78d09365112a868ddaf3f813ef2b5bc2c252 (patch) | |
tree | 48000d7f46c7b7102f1e8f013b72eccd41418abe /src/libs/engine/OSCBuffer.hpp | |
parent | a8ea9db4af11208293543f50392127819c8007cd (diff) | |
download | ingen-191b78d09365112a868ddaf3f813ef2b5bc2c252.tar.gz ingen-191b78d09365112a868ddaf3f813ef2b5bc2c252.tar.bz2 ingen-191b78d09365112a868ddaf3f813ef2b5bc2c252.zip |
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
Diffstat (limited to 'src/libs/engine/OSCBuffer.hpp')
-rw-r--r-- | src/libs/engine/OSCBuffer.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |