Session: changes to support timeline types more easily/correctly
This commit is contained in:
parent
768ce21d9f
commit
5f4afa6a0e
|
@ -500,6 +500,8 @@ public:
|
|||
|
||||
int wipe ();
|
||||
|
||||
timepos_t current_end () const;
|
||||
timepos_t current_start () const;
|
||||
samplepos_t current_end_sample () const;
|
||||
samplepos_t current_start_sample () const;
|
||||
/** "actual" sample rate of session, set by current audioengine rate, pullup/down etc. */
|
||||
|
@ -1139,8 +1141,8 @@ public:
|
|||
/* temporary hacks to allow selection to be pushed from GUI into backend.
|
||||
Whenever we move the selection object into libardour, these will go away.
|
||||
*/
|
||||
void set_range_selection (samplepos_t start, samplepos_t end);
|
||||
void set_object_selection (samplepos_t start, samplepos_t end);
|
||||
void set_range_selection (Temporal::timepos_t const & start, Temporal::timepos_t const & end);
|
||||
void set_object_selection (Temporal::timepos_t const & start, Temporal::timepos_t const & end);
|
||||
void clear_range_selection ();
|
||||
void clear_object_selection ();
|
||||
|
||||
|
|
|
@ -6511,6 +6511,18 @@ Session::current_end_sample () const
|
|||
return _session_range_location ? _session_range_location->end().samples() : 0;
|
||||
}
|
||||
|
||||
timepos_t
|
||||
Session::current_start () const
|
||||
{
|
||||
return _session_range_location ? _session_range_location->start() : timepos_t::max (Temporal::AudioTime);
|
||||
}
|
||||
|
||||
timepos_t
|
||||
Session::current_end () const
|
||||
{
|
||||
return _session_range_location ? _session_range_location->end() : timepos_t::max (Temporal::AudioTime);
|
||||
}
|
||||
|
||||
void
|
||||
Session::step_edit_status_change (bool yn)
|
||||
{
|
||||
|
@ -7097,15 +7109,15 @@ Session::reconnect_ltc_output ()
|
|||
}
|
||||
|
||||
void
|
||||
Session::set_range_selection (samplepos_t start, samplepos_t end)
|
||||
Session::set_range_selection (timepos_t const & start, timepos_t const & end)
|
||||
{
|
||||
_range_selection = Temporal::Range (timepos_t (start), timepos_t (end));
|
||||
_range_selection = Temporal::Range (start, end);
|
||||
}
|
||||
|
||||
void
|
||||
Session::set_object_selection (samplepos_t start, samplepos_t end)
|
||||
Session::set_object_selection (timepos_t const & start, timepos_t const & end)
|
||||
{
|
||||
_object_selection = Temporal::Range (timepos_t (start), timepos_t (end));
|
||||
_object_selection = Temporal::Range (start, end);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue