diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-04 19:40:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-04 19:40:33 +0000 |
| commit | c2dc03da9cc94fd9bd7e530363b113564237f00e (patch) | |
| tree | 4c027ab8aa49214014af378f94082e0c6721d3bb /src/lib/util.h | |
| parent | c366d41af080b9ac37117a9b27a249722c77f74e (diff) | |
Do the delay line in floats with an AudioBuffer.
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index 26c6ed9fa..f640122e2 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -218,6 +218,7 @@ class AudioBuffers { public: AudioBuffers (int channels, int frames); + AudioBuffers (AudioBuffers const &); ~AudioBuffers (); float** data () const { @@ -226,6 +227,10 @@ public: float* data (int) const; + int channels () const { + return _channels; + } + int frames () const { return _frames; } @@ -234,12 +239,13 @@ public: void make_silent (); + void copy_from (AudioBuffers* from, int frames_to_copy, int read_offset, int write_offset); + void move (int from, int to, int frames); + private: - /* no copy construction */ - AudioBuffers (AudioBuffers const &); - int _channels; int _frames; + int _allocated_frames; float** _data; }; |
