diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-11-02 05:13:53 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-11-02 05:13:53 +0000 |
commit | 40a6f878a945d96e51839d036992521dd5883e05 (patch) | |
tree | 46352d6ea3f97068663a15242bdde087673a1217 /libs/ardour/destructive_filesource.cc | |
parent | e31edb210810b250b61654a7a24e11f442a73da9 (diff) |
allow track selection to be toggled (ctrl-clicked); potential fixes for tape display offset stuff, but in progress
git-svn-id: svn://localhost/ardour2/trunk@1057 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/destructive_filesource.cc')
-rw-r--r-- | libs/ardour/destructive_filesource.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/destructive_filesource.cc b/libs/ardour/destructive_filesource.cc index e160ffd608..cc607bc368 100644 --- a/libs/ardour/destructive_filesource.cc +++ b/libs/ardour/destructive_filesource.cc @@ -57,6 +57,7 @@ typedef off_t off64_t; #include <pbd/error.h> #include <ardour/destructive_filesource.h> #include <ardour/utils.h> +#include <ardour/session.h> #include "i18n.h" @@ -353,7 +354,7 @@ DestructiveFileSource::write_unlocked (Sample* data, nframes_t cnt) old_file_pos = file_pos; update_length (file_pos, cnt); file_pos += cnt; - + if (_build_peakfiles) { PeakBuildRecord *pbr = 0; @@ -413,3 +414,10 @@ DestructiveFileSource::set_timeline_position (nframes_t pos) { //destructive track timeline postion does not change except at instantion or when header_position_offset (session start) changes } + +int +DestructiveFileSource::read_peaks (PeakData *peaks, nframes_t npeaks, nframes_t start, nframes_t cnt, double samples_per_unit) const +{ + return AudioFileSource::read_peaks (peaks, npeaks, start, cnt, samples_per_unit); +} + |