summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-09-18 12:39:17 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2017-09-18 12:39:17 -0400
commit30b087ab3d28f1585987fa3f6ae006562ae192e3 (patch)
tree620ae0250b5d77f90a18f8c2b83be61e4fe7b0b5 /gtk2_ardour/time_selection.cc
parentcb956e3e480716a3efd280a5287bdd7bee1cedc5 (diff)
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
Diffstat (limited to 'gtk2_ardour/time_selection.cc')
-rw-r--r--gtk2_ardour/time_selection.cc14
1 files changed, 7 insertions, 7 deletions
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<AudioRange>::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;
}