diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-10-17 16:49:31 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-10-17 16:49:31 +0000 |
commit | 239ec39da6583e6e00cd03fa3bde8f1e27016b4d (patch) | |
tree | 8e46988053361eefbbcaa0291f5d0540cd0ab9c7 /libs/ardour/ardour/audio_buffer.h | |
parent | df28e90c673b209b946463efa02f35c5a0f6bed5 (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/audio_buffer.h')
-rw-r--r-- | libs/ardour/ardour/audio_buffer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/ardour/audio_buffer.h b/libs/ardour/ardour/audio_buffer.h index b2c62466bf..9342ac196b 100644 --- a/libs/ardour/ardour/audio_buffer.h +++ b/libs/ardour/ardour/audio_buffer.h @@ -102,6 +102,12 @@ public: _silent = false; } + /** Reallocate the buffer used internally to handle at least @nframes of data + * + * Constructor MUST have been passed capacity!=0 or this will die (to prevent mem leaks). + */ + void resize (size_t nframes); + const Sample* data () const { return _data; } Sample* data () { return _data; } |