From e671a1e03df0d327691b9d13fb3bd753fb58a85c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 2 Aug 2007 18:33:34 +0000 Subject: Fix MIDI patching. Remove ugly C LV2 MIDI functions and moved functionality into MidiBuffer. git-svn-id: http://svn.drobilla.net/lad/ingen@671 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/OSCBuffer.hpp | 3 ++- 1 file changed, 2 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 dc529d30..7e1bc451 100644 --- a/src/libs/engine/OSCBuffer.hpp +++ b/src/libs/engine/OSCBuffer.hpp @@ -32,7 +32,8 @@ public: ~OSCBuffer() { } void clear() { lv2_osc_buffer_clear(_buf); } - void reset(SampleCount nframs) const {} + void reset(SampleCount nframes) { clear(); _this_nframes = nframes; } + void rewind() const {} void prepare_read(SampleCount nframes); void prepare_write(SampleCount nframes); -- cgit v1.2.1