}
int frames () const {
- return _data[0].size();
+ return _data.empty() ? 0 : _data[0].size();
}
void set_frames (int f);
+ void set_channels(int new_channels);
+
void make_silent ();
void make_silent (int channel);
void make_silent (int from, int frames);