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_editor.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_editor.cc')
-rw-r--r-- | gtk2_ardour/region_editor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/region_editor.cc b/gtk2_ardour/region_editor.cc index bb0199678e..3d4181dd2b 100644 --- a/gtk2_ardour/region_editor.cc +++ b/gtk2_ardour/region_editor.cc @@ -315,7 +315,7 @@ RegionEditor::end_clock_changed () void RegionEditor::length_clock_changed () { - framecnt_t frames = length_clock.current_time(); + samplecnt_t samples = length_clock.current_time(); bool in_command = false; boost::shared_ptr<Playlist> pl = _region->playlist(); @@ -324,7 +324,7 @@ RegionEditor::length_clock_changed () in_command = true; _region->clear_changes (); - _region->trim_end (_region->position() + frames - 1); + _region->trim_end (_region->position() + samples - 1); _session->add_command(new StatefulDiffCommand (_region)); } @@ -370,7 +370,7 @@ RegionEditor::bounds_changed (const PropertyChange& what_changed) if (what_changed.contains (ARDOUR::Properties::sync_position) || what_changed.contains (ARDOUR::Properties::position)) { int dir; - frameoffset_t off = _region->sync_offset (dir); + sampleoffset_t off = _region->sync_offset (dir); if (dir == -1) { off = -off; } |