diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-09-18 12:39:17 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-09-18 12:39:17 -0400 |
commit | 30b087ab3d28f1585987fa3f6ae006562ae192e3 (patch) | |
tree | 620ae0250b5d77f90a18f8c2b83be61e4fe7b0b5 /gtk2_ardour/region_selection.cc | |
parent | cb956e3e480716a3efd280a5287bdd7bee1cedc5 (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/region_selection.cc')
-rw-r--r-- | gtk2_ardour/region_selection.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk2_ardour/region_selection.cc b/gtk2_ardour/region_selection.cc index c0f3f60e3f..e5cc93a0b1 100644 --- a/gtk2_ardour/region_selection.cc +++ b/gtk2_ardour/region_selection.cc @@ -261,27 +261,27 @@ RegionSelection::involves (const TimeAxisView& tv) const return false; } -framepos_t +samplepos_t RegionSelection::start () const { - framepos_t s = max_framepos; + samplepos_t s = max_samplepos; for (RegionSelection::const_iterator i = begin(); i != end(); ++i) { s = min (s, (*i)->region()->position ()); } - if (s == max_framepos) { + if (s == max_samplepos) { return 0; } return s; } -framepos_t -RegionSelection::end_frame () const +samplepos_t +RegionSelection::end_sample () const { - framepos_t e = 0; + samplepos_t e = 0; for (RegionSelection::const_iterator i = begin(); i != end(); ++i) { - e = max (e, (*i)->region()->last_frame ()); + e = max (e, (*i)->region()->last_sample ()); } return e; |