diff options
author | David Robillard <d@drobilla.net> | 2007-04-08 08:11:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-08 08:11:59 +0000 |
commit | b59584b387c4b77d09ba4c791eb711597f67c8c8 (patch) | |
tree | cef114efdfc9807124b243c09547cfb9f6004a48 /src/libs/engine/Buffer.h | |
parent | e96c36c1a7abb062e36efc0ac95c35fedcef922e (diff) | |
download | ingen-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.h | 9 |
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; |