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/insert_remove_time_dialog.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/insert_remove_time_dialog.cc')
-rw-r--r-- | gtk2_ardour/insert_remove_time_dialog.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/insert_remove_time_dialog.cc b/gtk2_ardour/insert_remove_time_dialog.cc index f58bfdbaea..162559e539 100644 --- a/gtk2_ardour/insert_remove_time_dialog.cc +++ b/gtk2_ardour/insert_remove_time_dialog.cc @@ -74,10 +74,10 @@ InsertRemoveTimeDialog::InsertRemoveTimeDialog (PublicEditor& e, bool remove) //if a Range is selected, assume the user wants to insert/remove the length of the range if ( _editor.get_selection().time.length() != 0 ) { position_clock.set ( _editor.get_selection().time.start(), true ); - duration_clock.set ( _editor.get_selection().time.end_frame(), true, _editor.get_selection().time.start() ); + duration_clock.set ( _editor.get_selection().time.end_sample(), true, _editor.get_selection().time.start() ); duration_clock.set_bbt_reference (_editor.get_selection().time.start()); } else { - framepos_t const pos = _editor.get_preferred_edit_position (EDIT_IGNORE_MOUSE); + samplepos_t const pos = _editor.get_preferred_edit_position (EDIT_IGNORE_MOUSE); position_clock.set ( pos, true ); duration_clock.set_bbt_reference (pos); duration_clock.set (0); @@ -189,13 +189,13 @@ InsertRemoveTimeDialog::move_locked_markers () const return _move_locked_markers.get_active (); } -framepos_t +samplepos_t InsertRemoveTimeDialog::position () const { return position_clock.current_time(); } -framepos_t +samplepos_t InsertRemoveTimeDialog::distance () const { return duration_clock.current_duration ( position_clock.current_time() ); |