diff options
author | Carl Hetherington <carl@carlh.net> | 2011-07-15 00:03:18 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-07-15 00:03:18 +0000 |
commit | 9d57b87999e11df42b42dc64f78e384ad0cf8ea4 (patch) | |
tree | 846b98f81431c00e6be9b0a88ea389440e28759b /libs/ardour/processor.cc | |
parent | 75d315e452b51ff8f0df979b865678173bd8e9da (diff) |
Save / restore processor _user_latency (another part of #4186).
git-svn-id: svn://localhost/ardour2/branches/3.0@9880 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/processor.cc')
-rw-r--r-- | libs/ardour/processor.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc index bf4a8ea6cb..f7afeb99a7 100644 --- a/libs/ardour/processor.cc +++ b/libs/ardour/processor.cc @@ -128,6 +128,9 @@ Processor::state (bool full_state) } } + snprintf (buf, sizeof (buf), "%" PRId64, _user_latency); + node->add_property("user-latency", buf); + return *node; } @@ -231,6 +234,10 @@ Processor::set_state (const XMLNode& node, int version) } } + if ((prop = node.property ("user-latency")) != 0) { + _user_latency = atoi (prop->value ()); + } + return 0; } |