diff options
author | Carl Hetherington <carl@carlh.net> | 2009-02-11 00:58:24 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-02-11 00:58:24 +0000 |
commit | d469cc3e3a536fceedbfc41e52ad3d7d178f7b0d (patch) | |
tree | 5cee0af05edc00f5b19116727b1aebfd3bc52719 /libs/ardour/ardour/port.h | |
parent | fe4e98a72987f197239a025413bfddb4c29b8ba8 (diff) |
Remove internal ports.
git-svn-id: svn://localhost/ardour2/branches/3.0@4525 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/port.h')
-rw-r--r-- | libs/ardour/ardour/port.h | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/libs/ardour/ardour/port.h b/libs/ardour/ardour/port.h index 896b35e734..c63faa162d 100644 --- a/libs/ardour/ardour/port.h +++ b/libs/ardour/ardour/port.h @@ -65,13 +65,7 @@ public: return _flags & IsOutput; } - /* @return true if this port is visible outside Ardour (via JACK) */ - bool external () const { - return _jack_port != 0; - } - bool connected () const; - bool externally_connected () const; int disconnect_all (); int get_connections (std::vector<std::string> &) const; @@ -90,9 +84,8 @@ public: nframes_t total_latency () const; int reestablish (); int reconnect (); - void set_latency (nframes_t); void request_monitor_input (bool); - void make_external (); + void set_latency (nframes_t); virtual void reset (); @@ -108,36 +101,26 @@ public: protected: - Port (std::string const &, DataType, Flags, bool); + Port (std::string const &, DataType, Flags); - jack_port_t* _jack_port; ///< JACK port, or 0 if we don't have one - std::set<Port*> _connections; ///< internal Ports that we are connected to + jack_port_t* _jack_port; ///< JACK port static AudioEngine* _engine; ///< the AudioEngine - virtual bool using_internal_data() const { return false; } - virtual void use_internal_data () {} - virtual void use_external_data () {} - - void check_buffer_status (); - private: friend class AudioEngine; void recompute_total_latency () const; - void do_make_external (DataType); /* XXX */ bool _last_monitor; - nframes_t _latency; std::string _name; ///< port short name Flags _flags; ///< flags - /// list of JACK ports that we are connected to; we only keep this around - /// so that we can implement ::reconnect () - std::set<std::string> _named_connections; - + /** ports that we are connected to, kept so that we can + reconnect to JACK when required */ + std::set<std::string> _connections; }; } |