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