summaryrefslogtreecommitdiff
path: root/libs/ardour/session.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r--libs/ardour/session.cc31
1 files changed, 31 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index b02bcb8dec..27b1aa461f 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -271,6 +271,8 @@ Session::Session (AudioEngine &eng,
, click_emphasis_length (0)
, _clicks_cleared (0)
, _play_range (false)
+ , _range_selection (-1,-1)
+ , _object_selection (-1,-1)
, main_outs (0)
, first_file_data_format_reset (true)
, first_file_header_format_reset (true)
@@ -6109,3 +6111,32 @@ Session::reconnect_ltc_output ()
#endif
}
}
+
+void
+Session::set_range_selection (framepos_t start, framepos_t end)
+{
+ cerr << "set range selection " << start << " .. " << end << endl;
+ _range_selection = Evoral::Range<framepos_t> (start, end);
+ follow_playhead_priority ();
+}
+
+void
+Session::set_object_selection (framepos_t start, framepos_t end)
+{
+ _object_selection = Evoral::Range<framepos_t> (start, end);
+ follow_playhead_priority ();
+}
+
+void
+Session::clear_range_selection ()
+{
+ _range_selection = Evoral::Range<framepos_t> (-1,-1);
+ follow_playhead_priority ();
+}
+
+void
+Session::clear_object_selection ()
+{
+ _object_selection = Evoral::Range<framepos_t> (-1,-1);
+ follow_playhead_priority ();
+}