From c40ddfc0eebbcb3333d6cc9e3df7fb62ecb45941 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 30 Sep 2007 17:36:38 +0000 Subject: Better driver interface for input/output. MIDI output (pass-through anyway, plugin->output is still screwy). Fix crash on failure to instantiate LV2 plugin. git-svn-id: http://svn.drobilla.net/lad/ingen@786 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/JackMidiDriver.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libs/engine/JackMidiDriver.hpp') diff --git a/src/libs/engine/JackMidiDriver.hpp b/src/libs/engine/JackMidiDriver.hpp index c546fbec..21e1f3ec 100644 --- a/src/libs/engine/JackMidiDriver.hpp +++ b/src/libs/engine/JackMidiDriver.hpp @@ -42,7 +42,8 @@ public: JackMidiPort(JackMidiDriver* driver, DuplexPort* port); virtual ~JackMidiPort(); - void prepare_block(const SampleCount block_start, const SampleCount block_end); + void pre_process(SampleCount block_start, SampleCount block_end); + void post_process(SampleCount block_start, SampleCount block_end); void set_name(const std::string& name) { jack_port_set_name(_jack_port, name.c_str()); }; @@ -76,7 +77,8 @@ public: bool is_activated() const { return _is_activated; } bool is_enabled() const { return _is_enabled; } - void prepare_block(const SampleCount block_start, const SampleCount block_end); + void pre_process(ProcessContext& context, SampleCount nframes, FrameTime start, FrameTime end); + void post_process(ProcessContext& context, SampleCount nframes, FrameTime start, FrameTime end); JackMidiPort* create_port(DuplexPort* patch_port) { return new JackMidiPort(this, patch_port); } -- cgit v1.2.1