diff options
author | Torben Hohn <torbenh@gmx.de> | 2010-06-02 16:21:02 +0000 |
---|---|---|
committer | Torben Hohn <torbenh@gmx.de> | 2010-06-02 16:21:02 +0000 |
commit | 51ad790745400eeb38547fa4de842202fec934b8 (patch) | |
tree | 6532300509bf85246573699c71c00ec25bc0b57b /libs/ardour/port.cc | |
parent | b65fe35f675293fb31e0b1a34cb6ac541773edc0 (diff) |
add -P flag blocking port connections while loading session
git-svn-id: svn://localhost/ardour2/branches/3.0@7213 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/port.cc')
-rw-r--r-- | libs/ardour/port.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index 9cbdd14172..6ae0c5d92b 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -36,6 +36,7 @@ using namespace ARDOUR; AudioEngine* Port::_engine = 0; nframes_t Port::_port_offset = 0; nframes_t Port::_buffer_size = 0; +bool Port::_connecting_blocked = false; /** @param n Port short name */ Port::Port (std::string const & n, DataType t, Flags f) @@ -116,6 +117,9 @@ Port::connect (std::string const & other) int r = 0; + if (_connecting_blocked) + return r; + if (sends_output ()) { r = jack_connect (_engine->jack (), this_shrt.c_str (), other_shrt.c_str ()); } else { |