summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/Buffer.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-04-08 08:11:59 +0000
committerDavid Robillard <d@drobilla.net>2007-04-08 08:11:59 +0000
commitb59584b387c4b77d09ba4c791eb711597f67c8c8 (patch)
treecef114efdfc9807124b243c09547cfb9f6004a48 /src/libs/engine/Buffer.h
parente96c36c1a7abb062e36efc0ac95c35fedcef922e (diff)
downloadingen-b59584b387c4b77d09ba4c791eb711597f67c8c8.tar.gz
ingen-b59584b387c4b77d09ba4c791eb711597f67c8c8.tar.bz2
ingen-b59584b387c4b77d09ba4c791eb711597f67c8c8.zip
MIDI patching fixes (clean disconnecting).
git-svn-id: http://svn.drobilla.net/lad/ingen@416 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Buffer.h')
-rw-r--r--src/libs/engine/Buffer.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libs/engine/Buffer.h b/src/libs/engine/Buffer.h
index ee94b786..b27c3a86 100644
--- a/src/libs/engine/Buffer.h
+++ b/src/libs/engine/Buffer.h
@@ -37,10 +37,15 @@ public:
virtual ~Buffer() {}
+ /** Clear contents and reset state */
virtual void clear() = 0;
- virtual void prepare(SampleCount nframes) = 0;
+
+ /** Reset state (ie reset read ptr), but leave contents */
+ virtual void reset(SampleCount nframes) = 0;
+
+ virtual void prepare_read(SampleCount nframes) = 0;
+ virtual void prepare_write(SampleCount nframes) = 0;
- virtual bool is_joined() const = 0;
virtual bool is_joined_to(Buffer* buf) const = 0;
virtual bool join(Buffer* buf) = 0;
virtual void unjoin() = 0;