summaryrefslogtreecommitdiff
path: root/libs/ardour/amp.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-05-13 21:34:09 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-05-13 21:34:09 +0000
commit0569107ddc0d2a8df6ca0a2c8cc16ebe8f3dee99 (patch)
tree81b0a6ffb5cd967d3b205a11ad6d4f8726aa03d2 /libs/ardour/amp.cc
parent7188ec39903e4cef049468c5a0583d9ec67a290d (diff)
more work on the new all-Processor-all-The-Time redesign of Route - LOTS OF BREAKAGE STILL EXPECTED ; change all(?) methods that pass a start/end frame in to use sframes_t not nframes_t
git-svn-id: svn://localhost/ardour2/branches/3.0@5074 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r--libs/ardour/amp.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc
index aa20f3e389..591fcd8569 100644
--- a/libs/ardour/amp.cc
+++ b/libs/ardour/amp.cc
@@ -57,7 +57,7 @@ Amp::configure_io (ChanCount in, ChanCount out)
}
void
-Amp::run_in_place (BufferSet& bufs, nframes_t start_frame, nframes_t end_frame, nframes_t nframes)
+Amp::run_in_place (BufferSet& bufs, sframes_t start_frame, sframes_t end_frame, nframes_t nframes)
{
gain_t* gab = _session.gain_automation_buffer();
@@ -201,15 +201,9 @@ Amp::apply_simple_gain (BufferSet& bufs, nframes_t nframes, gain_t target)
XMLNode&
Amp::state (bool full_state)
{
- return get_state();
-}
-
-XMLNode&
-Amp::get_state()
-{
- XMLNode* node = new XMLNode(state_node_name);
- node->add_property("type", "amp");
- return *node;
+ XMLNode& node (Processor::state (full_state));
+ node.add_property("type", "amp");
+ return node;
}
} // namespace ARDOUR