diff options
Diffstat (limited to 'libs/ardour/ardour/source.h')
-rw-r--r-- | libs/ardour/ardour/source.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h index a18250fff2..591e7181a1 100644 --- a/libs/ardour/ardour/source.h +++ b/libs/ardour/ardour/source.h @@ -32,11 +32,14 @@ namespace ARDOUR { +class Session; + class Source : public PBD::StatefulDestructible, public sigc::trackable { public: - Source (std::string name, DataType type); - Source (const XMLNode&); + Source (Session&, std::string name, DataType type); + Source (Session&, const XMLNode&); + virtual ~Source (); std::string name() const { return _name; } @@ -44,8 +47,6 @@ class Source : public PBD::StatefulDestructible, public sigc::trackable DataType type() { return _type; } - const PBD::ID& id() const { return _id; } - time_t timestamp() const { return _timestamp; } void stamp (time_t when) { _timestamp = when; } @@ -65,13 +66,13 @@ class Source : public PBD::StatefulDestructible, public sigc::trackable protected: void update_length (jack_nframes_t pos, jack_nframes_t cnt); + Session& _session; string _name; DataType _type; time_t _timestamp; jack_nframes_t _length; private: - PBD::ID _id; }; } |