diff options
author | Robin Gareus <robin@gareus.org> | 2019-02-16 00:13:30 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-02-16 01:10:50 +0100 |
commit | 3cffaeac74163535295513488756c55ba5e2dffa (patch) | |
tree | 3cf90ea9932a8f707f5dc8b04bf0113f2c743e79 /libs/ardour/io.cc | |
parent | 26f37a47530bac5f1c21d660dcea0b794cc22f09 (diff) |
Prepare to allow to disable latency-compensation
Previously "zero custom/user latency" meant "default plugin latency".
This is now saved in a separate boolean allowing a user to reduce a
processor's latency to zero.
This also prepares for a global switch to use zero latency throughout
the whole session.
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r-- | libs/ardour/io.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 99cd41657f..59e452633a 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -536,7 +536,7 @@ IO::state () node->add_child_nocopy (*pnode); } - node->set_property (X_("user-latency"), _user_latency); + Latent::add_state (node); return *node; } @@ -597,7 +597,7 @@ IO::set_state (const XMLNode& node, int version) ConnectingLegal.connect_same_thread (connection_legal_c, boost::bind (&IO::connecting_became_legal, this)); } - node.get_property ("user-latency", _user_latency); + Latent::set_state (node, version); return 0; } |