#define __ardour_audio_buffer_h__
#include <cstring>
+
#include "ardour/buffer.h"
+#include "ardour/runtime_functions.h"
namespace ARDOUR {
assert(src.type() == DataType::AUDIO);
assert(len <= _capacity);
assert( src_offset <= ((framecnt_t) src.capacity()-len));
- memcpy(_data + dst_offset, ((AudioBuffer&)src).data() + src_offset, sizeof(Sample) * len);
+ memcpy(_data + dst_offset, ((const AudioBuffer&)src).data() + src_offset, sizeof(Sample) * len);
if (dst_offset == 0 && src_offset == 0 && len == _capacity) {
_silent = src.silent();
} else {
void prepare () { _written = false; _silent = false; }
bool written() const { return _written; }
+ void set_written(bool w) { _written = w; }
private:
bool _owns_data;