From b5af3bb8e313e13166cc54c60a14e5492e674065 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 27 Jun 2007 22:06:35 +0000 Subject: allow user tweaking of everything that might have inherent latency; add GUI for track level adjustment and widget that can be (but is not yet) embedded in a plugin GUI git-svn-id: svn://localhost/ardour2/trunk@2075 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/plugin_insert.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libs/ardour/plugin_insert.cc') diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index 0ec5dde0db..a842277845 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -836,11 +836,15 @@ PluginInsert::describe_parameter (ParamID param) } ARDOUR::nframes_t -PluginInsert::latency() +PluginInsert::signal_latency() const { - return _plugins[0]->latency (); + if (_user_latency) { + return _user_latency; + } + + return _plugins[0]->signal_latency (); } - + ARDOUR::PluginType PluginInsert::type () { @@ -870,4 +874,3 @@ PluginInsert::type () } } - -- cgit v1.2.3