diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-30 13:23:19 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-05-30 13:23:19 +0000 |
commit | 6eba90adb3ef9726ef277e9abeeede0dec9b8454 (patch) | |
tree | a7d4674a202c70d972225b288705daf3fbda2dc9 /libs/ardour/audiosource.cc | |
parent | c937a67f6ee7e9f280a097683528201489ae6930 (diff) |
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
Diffstat (limited to 'libs/ardour/audiosource.cc')
-rw-r--r-- | libs/ardour/audiosource.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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<Sample> (new Sample[nframes])); _gain_buffers.push_back (boost::shared_ptr<gain_t> (new gain_t[nframes])); |