From b59584b387c4b77d09ba4c791eb711597f67c8c8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Apr 2007 08:11:59 +0000 Subject: MIDI patching fixes (clean disconnecting). git-svn-id: http://svn.drobilla.net/lad/ingen@416 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/Port.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libs/engine/Port.h') diff --git a/src/libs/engine/Port.h b/src/libs/engine/Port.h index b42231fe..6b3c20e8 100644 --- a/src/libs/engine/Port.h +++ b/src/libs/engine/Port.h @@ -52,7 +52,9 @@ public: Buffer* buffer(size_t voice) const { return _buffers.at(voice); } /** Called once per process cycle */ - virtual void process(SampleCount nframes, FrameTime start, FrameTime end); + virtual void pre_process(SampleCount nframes, FrameTime start, FrameTime end) = 0; + virtual void process(SampleCount nframes, FrameTime start, FrameTime end) {} + virtual void post_process(SampleCount nframes, FrameTime start, FrameTime end) {}; /** Empty buffer contents completely (ie silence) */ virtual void clear_buffers(); -- cgit v1.2.1