diff options
author | David Robillard <d@drobilla.net> | 2007-10-25 00:09:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-25 00:09:23 +0000 |
commit | f53f2e8e3306a56c99cc1c034f8aecee4325ec88 (patch) | |
tree | 9e8f37aa9f6a0cb178c5bcec4c6a2c1b0da0ad03 /libs/ardour/ardour/port.h | |
parent | 0cb6567836e523f276db8756a7d7c2629b6e6828 (diff) |
Clean/strengthen up constructor/type stuff in new port system.
git-svn-id: svn://localhost/ardour2/trunk@2572 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/port.h')
-rw-r--r-- | libs/ardour/ardour/port.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/ardour/ardour/port.h b/libs/ardour/ardour/port.h index 5c8192b6e8..e9179ae326 100644 --- a/libs/ardour/ardour/port.h +++ b/libs/ardour/ardour/port.h @@ -74,7 +74,8 @@ class Port : public virtual sigc::trackable { if (_metering) { _metering--; } } - virtual DataType type() const = 0; + DataType type() const { return _type; } + virtual void cycle_start(nframes_t nframes) {} virtual void cycle_end() {} virtual Buffer& get_buffer() = 0; @@ -97,7 +98,7 @@ class Port : public virtual sigc::trackable { protected: friend class AudioEngine; - Port (Flags); + Port (DataType, Flags); virtual int disconnect () = 0; virtual void recompute_total_latency() const = 0; @@ -105,8 +106,8 @@ class Port : public virtual sigc::trackable { /* engine isn't supposed to access below here */ - Flags _flags; - std::string _type; + Flags _flags; + const DataType _type; std::string _name; unsigned short _metering; bool _last_monitor; |