summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/buffer.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-10-17 16:49:31 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-10-17 16:49:31 +0000
commit239ec39da6583e6e00cd03fa3bde8f1e27016b4d (patch)
tree8e46988053361eefbbcaa0291f5d0540cd0ab9c7 /libs/ardour/ardour/buffer.h
parentdf28e90c673b209b946463efa02f35c5a0f6bed5 (diff)
new internal port type, round I, plus tiny fix for legalize_for_xml() (also for 2.0-ongoing)
git-svn-id: svn://localhost/ardour2/trunk@2559 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/buffer.h')
-rw-r--r--libs/ardour/ardour/buffer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/ardour/buffer.h b/libs/ardour/ardour/buffer.h
index 18c83f8bfb..fd94360226 100644
--- a/libs/ardour/ardour/buffer.h
+++ b/libs/ardour/ardour/buffer.h
@@ -59,6 +59,13 @@ public:
DataType type() const { return _type; }
bool silent() const { return _silent; }
+
+ /** Reallocate the buffer used internally to handle at least @a size_t units of data.
+ *
+ * The buffer is not silent after this operation. the @a capacity argument
+ * passed to the constructor must have been non-zero.
+ */
+ virtual void resize(size_t) = 0;
/** Clear (eg zero, or empty) buffer starting at TIME @a offset */
virtual void silence(nframes_t len, nframes_t offset=0) = 0;