fixes for destructive track offsets of various kinds; move from jack_nframes_t -...
[ardour.git] / libs / ardour / ardour / source.h
index 28ccd682724727375f3825522df74fe7c6a4975a..40594f744b22f9435333101cb6048fd8141541c9 100644 (file)
 
 namespace ARDOUR {
 
+class Session;
+
 class Source : public PBD::StatefulDestructible, public sigc::trackable
 {
   public:
-       Source (std::string name);
-       Source (const XMLNode&);
+       Source (Session&, std::string name);
+       Source (Session&, const XMLNode&);
        virtual ~Source ();
 
        std::string name() const { return _name; }
        int set_name (std::string str, bool destructive);
 
-       const PBD::ID&  id() const   { return _id; }
-
        time_t timestamp() const { return _timestamp; }
        void stamp (time_t when) { _timestamp = when; }
 
@@ -51,11 +51,11 @@ class Source : public PBD::StatefulDestructible, public sigc::trackable
 
 
   protected:
+       Session&          _session;
        string            _name;
        time_t            _timestamp;
 
   private:
-       PBD::ID _id;
 };
 
 }