Update session extents calculation

* Expose API via Public Editor
* Skip hidden tracks in calculation
* Use a single call to query playlist extents.
  This way the playlist read-lock is needed at most once per track
  which speeds up calculation.
This commit is contained in:
Robin Gareus 2021-01-05 23:23:22 +01:00
parent 548db7a9a4
commit aecd84e7fd
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 14 additions and 12 deletions

View file

@ -480,6 +480,8 @@ public:
virtual void get_pointer_position (double &, double &) const = 0;
virtual std::pair <samplepos_t, samplepos_t> session_gui_extents (bool use_extra = true) const = 0;
virtual ARDOUR::Location* find_location_from_marker (ArdourMarker*, bool&) const = 0;
virtual ArdourMarker* find_marker_from_location_id (PBD::ID const&, bool) const = 0;