Save / restore processor _user_latency (another part of #4186).
git-svn-id: svn://localhost/ardour2/branches/3.0@9880 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
75d315e452
commit
9d57b87999
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user