X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_buffers.h;h=6b57bd142ff5bf674f75c78f2bf987ce7c0cc1a8;hb=3e56e4126ec8199f15e03c213b37f39d72c27cc3;hp=47b8145a1de2892e6126ca3cea8738a034514eff;hpb=996b0c06e23bcb6b300d7b8799df94993692e07d;p=dcpomatic.git diff --git a/src/lib/audio_buffers.h b/src/lib/audio_buffers.h index 47b8145a1..6b57bd142 100644 --- a/src/lib/audio_buffers.h +++ b/src/lib/audio_buffers.h @@ -30,6 +30,8 @@ public: AudioBuffers (boost::shared_ptr); ~AudioBuffers (); + AudioBuffers & operator= (AudioBuffers const &); + void ensure_size (int); float** data () const { @@ -50,6 +52,7 @@ public: void make_silent (); void make_silent (int c); + void make_silent (int from, int frames); void copy_from (AudioBuffers const * from, int frames_to_copy, int read_offset, int write_offset); void move (int from, int to, int frames); @@ -57,6 +60,9 @@ public: void accumulate_frames (AudioBuffers const *, int read_offset, int write_offset, int frames); private: + void allocate (int, int); + void deallocate (); + /** Number of channels */ int _channels; /** Number of frames (where a frame is one sample across all channels) */