diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-04 19:57:17 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-04 19:57:17 +0000 |
| commit | b7466a9653345bc51db4cb1d7e960bfc4c12721f (patch) | |
| tree | 1de42bc7c5973cecfdedc93d95671fdc7096be68 /src/lib/util.h | |
| parent | fe4e160ba2df273e8e065d0d12411eba35b00ebf (diff) | |
| parent | c2dc03da9cc94fd9bd7e530363b113564237f00e (diff) | |
Fix merge; other tweaks.
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 f87328dba..bb0a70a05 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -220,6 +220,7 @@ class AudioBuffers { public: AudioBuffers (int channels, int frames); + AudioBuffers (AudioBuffers const &); ~AudioBuffers (); float** data () const { @@ -228,6 +229,10 @@ public: float* data (int) const; + int channels () const { + return _channels; + } + int frames () const { return _frames; } @@ -236,12 +241,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; }; |
