diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-10-31 18:24:43 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-10-31 18:24:43 +0000 |
commit | 8ab17e96312f1a61c014c50687e15430d5ae786b (patch) | |
tree | eefb889cd64d48058a608f0c19185b2a56d73399 /libs/ardour/ardour/audio_buffer.h | |
parent | 1b0f6b1d69bcad74c6127690cebc1c14486e8c1d (diff) |
new port design, probably about 90% done (i.e it mostly works and this commit is to stop anyone else from stomping on my changes :)
git-svn-id: svn://localhost/ardour2/trunk@2579 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/audio_buffer.h')
-rw-r--r-- | libs/ardour/ardour/audio_buffer.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/libs/ardour/ardour/audio_buffer.h b/libs/ardour/ardour/audio_buffer.h index 8f0df4419c..09bf5946fa 100644 --- a/libs/ardour/ardour/audio_buffer.h +++ b/libs/ardour/ardour/audio_buffer.h @@ -23,8 +23,6 @@ namespace ARDOUR { - -/** Buffer containing 32-bit floating point (audio) data. */ class AudioBuffer : public Buffer { public: @@ -32,8 +30,7 @@ public: ~AudioBuffer(); - void silence(nframes_t len, nframes_t offset=0) - { + void silence(nframes_t len, nframes_t offset = 0) { if (!_silent) { assert(_capacity > 0); assert(offset + len <= _capacity); @@ -45,8 +42,7 @@ public: } /** Read @a len frames FROM THE START OF @a src into self at @a offset */ - void read_from(const Buffer& src, nframes_t len, nframes_t offset) - { + void read_from(const Buffer& src, nframes_t len, nframes_t offset) { assert(_capacity > 0); assert(src.type() == DataType::AUDIO); assert(offset + len <= _capacity); @@ -55,8 +51,7 @@ public: } /** Accumulate (add)@a len frames FROM THE START OF @a src into self at @a offset */ - void accumulate_from(const AudioBuffer& src, nframes_t len, nframes_t offset) - { + void accumulate_from(const AudioBuffer& src, nframes_t len, nframes_t offset) { assert(_capacity > 0); assert(offset + len <= _capacity); @@ -70,8 +65,7 @@ public: /** Accumulate (add) @a len frames FROM THE START OF @a src into self at @a offset * scaling by @a gain_coeff */ - void accumulate_with_gain_from(const AudioBuffer& src, nframes_t len, nframes_t offset, gain_t gain_coeff) - { + void accumulate_with_gain_from(const AudioBuffer& src, nframes_t len, nframes_t offset, gain_t gain_coeff) { assert(_capacity > 0); assert(offset + len <= _capacity); @@ -91,8 +85,7 @@ public: * * Constructor MUST have been passed capacity=0 or this will die (to prevent mem leaks). */ - void set_data(Sample* data, size_t size) - { + void set_data (Sample* data, size_t size) { assert(!_owns_data); // prevent leaks _capacity = size; _size = size; |