summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/port.h
diff options
context:
space:
mode:
authorTorben Hohn <torbenh@gmx.de>2010-06-02 16:21:02 +0000
committerTorben Hohn <torbenh@gmx.de>2010-06-02 16:21:02 +0000
commit51ad790745400eeb38547fa4de842202fec934b8 (patch)
tree6532300509bf85246573699c71c00ec25bc0b57b /libs/ardour/ardour/port.h
parentb65fe35f675293fb31e0b1a34cb6ac541773edc0 (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/ardour/port.h')
-rw-r--r--libs/ardour/ardour/port.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/ardour/port.h b/libs/ardour/ardour/port.h
index cc37bf0821..3a677d293f 100644
--- a/libs/ardour/ardour/port.h
+++ b/libs/ardour/ardour/port.h
@@ -56,6 +56,13 @@ public:
static void set_buffer_size (nframes_t sz) {
_buffer_size = sz;
}
+ static void set_connecting_blocked( bool yn ) {
+ _connecting_blocked = yn;
+ }
+ static bool connecting_blocked() {
+ return _connecting_blocked;
+ }
+
/** @return Port short name */
std::string name () const {
@@ -130,6 +137,7 @@ protected:
static nframes_t _port_offset;
static nframes_t _buffer_size;
+ static bool _connecting_blocked;
static AudioEngine* _engine; ///< the AudioEngine