diff options
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; |