diff options
-rw-r--r-- | libs/ardour/disk_reader.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/disk_reader.cc b/libs/ardour/disk_reader.cc index ebc06b7d9e..375dda7075 100644 --- a/libs/ardour/disk_reader.cc +++ b/libs/ardour/disk_reader.cc @@ -17,7 +17,7 @@ */ -#include <boost/smart_ptr/scoped_ptr.hpp> +#include <boost/smart_ptr/scoped_array.hpp> #include "pbd/enumwriter.h" #include "pbd/memento_command.h" @@ -538,8 +538,8 @@ DiskReader::overwrite_existing_buffers () /* assume all are the same size */ samplecnt_t size = c->front()->rbuf->bufsize(); - boost::scoped_ptr<Sample> mixdown_buffer (new Sample[size]); - boost::scoped_ptr<float> gain_buffer (new float[size]); + boost::scoped_array<Sample> mixdown_buffer (new Sample[size]); + boost::scoped_array<float> gain_buffer (new float[size]); /* reduce size so that we can fill the buffer correctly (ringbuffers can only handle size-1, otherwise they appear to be empty) @@ -829,8 +829,8 @@ DiskReader::_do_refill_with_alloc (bool partial_fill) */ { - boost::scoped_ptr<Sample> mix_buf (new Sample[2*1048576]); - boost::scoped_ptr<float> gain_buf (new float[2*1048576]); + boost::scoped_array<Sample> mix_buf (new Sample[2*1048576]); + boost::scoped_array<float> gain_buf (new float[2*1048576]); int ret = refill_audio (mix_buf.get(), gain_buf.get(), (partial_fill ? _chunk_samples : 0)); |