diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-10-17 15:44:57 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-11-02 16:32:18 -0600 |
commit | 2cf9ad8f8c21cc445c8eabc6856fd9956926203f (patch) | |
tree | 53227bb8f61f20d669806f2508aa308f6abdd264 /libs/ardour/ardour/session_event.h | |
parent | 5b92ef435390ee9fbffc4ad964f7497cf46a3d3f (diff) |
refactor SessionEvent and DiskIO so that we pass around boost::shared_ptr<Track> rather than Route
(this the raw pointers used inside SessionEvent)
Diffstat (limited to 'libs/ardour/ardour/session_event.h')
-rw-r--r-- | libs/ardour/ardour/session_event.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/ardour/ardour/session_event.h b/libs/ardour/ardour/session_event.h index 98fe6838f5..da6a0505f2 100644 --- a/libs/ardour/ardour/session_event.h +++ b/libs/ardour/ardour/session_event.h @@ -37,6 +37,7 @@ namespace ARDOUR { class TransportMaster; class Region; +class Track; class LIBARDOUR_API SessionEvent { public: @@ -80,12 +81,12 @@ public: double speed; union { - void* ptr; bool yes_or_no; samplepos_t target2_sample; - Route* route; }; + boost::shared_ptr<Track> track; + union { bool second_yes_or_no; double control_value; @@ -113,8 +114,8 @@ public: SessionEvent (Type t, Action a, samplepos_t when, samplepos_t where, double spd, bool yn = false, bool yn2 = false, bool yn3 = false); - void set_ptr (void* p) { - ptr = p; + void set_track (boost::shared_ptr<Track> t) { + track = t; } bool before (const SessionEvent& other) const { |