From 6eba90adb3ef9726ef277e9abeeede0dec9b8454 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 30 May 2011 13:23:19 +0000 Subject: add dependents to a compound playlist before creating a source from it, so that the source's new peakfile shows the xfades git-svn-id: svn://localhost/ardour2/branches/3.0@9631 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/audiosource.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libs/ardour/audiosource.cc') diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index de6c5edfec..037352e9fd 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -670,6 +670,7 @@ AudioSource::build_peaks_from_scratch () framecnt_t frames_to_read = min (bufsize, cnt); framecnt_t frames_read; + if ((frames_read = read_unlocked (buf, current_frame, frames_to_read)) != frames_to_read) { error << string_compose(_("%1: could not write read raw data for peak computation (%2)"), _name, strerror (errno)) << endmsg; done_with_peakfile_writes (false); @@ -1002,8 +1003,6 @@ AudioSource::ensure_buffers_for_level_locked (uint32_t level, framecnt_t frame_r _mixdown_buffers.clear (); _gain_buffers.clear (); - cerr << "Allocating nested buffers for level " << level << endl; - while (_mixdown_buffers.size() < level) { _mixdown_buffers.push_back (boost::shared_ptr (new Sample[nframes])); _gain_buffers.push_back (boost::shared_ptr (new gain_t[nframes])); -- cgit v1.2.3