From e31f5d999837b0d0d63dc824c50e9da4acca7244 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 4 Oct 2017 00:35:29 +0200 Subject: Clean up State API: * Processor implement get_state(), classes derived from Processor implement protected ::state() -- as documented in processor.h * likewise for Route, Track: make ::state() a protected interface * removal of "full_state", use explicit "template_save" * use RAII/Unwind to skip saving automation-state --- libs/ardour/amp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/amp.cc') diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc index 94d3f4617d..cd55514fc1 100644 --- a/libs/ardour/amp.cc +++ b/libs/ardour/amp.cc @@ -365,9 +365,9 @@ Amp::apply_simple_gain (AudioBuffer& buf, samplecnt_t nframes, gain_t target) } XMLNode& -Amp::state (bool full_state) +Amp::state () { - XMLNode& node (Processor::state (full_state)); + XMLNode& node (Processor::state ()); node.set_property("type", _gain_control->parameter().type() == GainAutomation ? "amp" : "trim"); node.add_child_nocopy (_gain_control->get_state()); -- cgit v1.2.3