diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-06-27 22:06:35 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-06-27 22:06:35 +0000 |
commit | b5af3bb8e313e13166cc54c60a14e5492e674065 (patch) | |
tree | d27e045a17bae47e63cde89173a53fb30ffa298b /libs/ardour/plugin_insert.cc | |
parent | 34be8c21198441a4f8ceac35da12250cafa2d1c2 (diff) |
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
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 11 |
1 files changed, 7 insertions, 4 deletions
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 () } } - |