diff options
author | David Robillard <d@drobilla.net> | 2007-06-23 20:13:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-23 20:13:13 +0000 |
commit | 49ee64ada7f7661067a1dde8c02d40a8e2f6ca66 (patch) | |
tree | b1c4472355e6e3c65ca907c5c3e13959fb2e46cf /libs/ardour/ardour/source.h | |
parent | 05184ed52ffcdcad3c071d4c99287f832f42b74b (diff) |
Insert/Redirect refactoring, towards better MIDI support in mixer strip, and
http://ardour.org/node/1043 style things.
git-svn-id: svn://localhost/ardour2/trunk@2027 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/source.h')
-rw-r--r-- | libs/ardour/ardour/source.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h index 2a6e0c8638..029469f491 100644 --- a/libs/ardour/ardour/source.h +++ b/libs/ardour/ardour/source.h @@ -28,6 +28,7 @@ #include <pbd/statefuldestructible.h> #include <ardour/ardour.h> +#include <ardour/session_object.h> #include <ardour/data_type.h> namespace ARDOUR { @@ -35,17 +36,14 @@ namespace ARDOUR { class Session; class Playlist; -class Source : public PBD::StatefulDestructible +class Source : public SessionObject { public: - Source (Session&, std::string name, DataType type); + Source (Session&, const std::string& name, DataType type); Source (Session&, const XMLNode&); virtual ~Source (); - - std::string name() const { return _name; } - int set_name (std::string str, bool destructive); - + DataType type() { return _type; } time_t timestamp() const { return _timestamp; } @@ -76,8 +74,6 @@ class Source : public PBD::StatefulDestructible protected: void update_length (nframes_t pos, nframes_t cnt); - Session& _session; - string _name; DataType _type; time_t _timestamp; nframes_t _length; |