From 30b087ab3d28f1585987fa3f6ae006562ae192e3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 18 Sep 2017 12:39:17 -0400 Subject: globally change all use of "frame" to refer to audio into "sample". Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible --- gtk2_ardour/time_selection.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gtk2_ardour/time_selection.cc') diff --git a/gtk2_ardour/time_selection.cc b/gtk2_ardour/time_selection.cc index 2f40dcb8e4..ba9918d116 100644 --- a/gtk2_ardour/time_selection.cc +++ b/gtk2_ardour/time_selection.cc @@ -68,14 +68,14 @@ TimeSelection::consolidate () return changed; } -framepos_t +samplepos_t TimeSelection::start () { if (empty()) { return 0; } - framepos_t first = max_framepos; + samplepos_t first = max_samplepos; for (std::list::iterator i = begin(); i != end(); ++i) { if ((*i).start < first) { @@ -85,10 +85,10 @@ TimeSelection::start () return first; } -framepos_t -TimeSelection::end_frame () +samplepos_t +TimeSelection::end_sample () { - framepos_t last = 0; + samplepos_t last = 0; /* XXX make this work like RegionSelection: no linear search needed */ @@ -100,12 +100,12 @@ TimeSelection::end_frame () return last; } -framecnt_t +samplecnt_t TimeSelection::length() { if (empty()) { return 0; } - return end_frame() - start() + 1; + return end_sample() - start() + 1; } -- cgit v1.2.3