summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/lua_api.h
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2017-01-31 10:35:37 -0600
committerBen Loftis <ben@harrisonconsoles.com>2017-01-31 10:35:37 -0600
commitbfebad3dce3c4aeb634a2979f0785b2713b093a7 (patch)
treecdf87320c0eb737ea792f75ad71c97ff8b30a93d /libs/ardour/ardour/lua_api.h
parent0d7f88afbdb4477990706faa49a75e4dfb419b75 (diff)
Expose a new lua hook for resetting a plugin processor ( convenience func only: this avoids the necessity of an extra cast to PlugInsert )
Diffstat (limited to 'libs/ardour/ardour/lua_api.h')
-rw-r--r--libs/ardour/ardour/lua_api.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/ardour/ardour/lua_api.h b/libs/ardour/ardour/lua_api.h
index f56a640ca1..c5ce0986ce 100644
--- a/libs/ardour/ardour/lua_api.h
+++ b/libs/ardour/ardour/lua_api.h
@@ -99,6 +99,15 @@ namespace ARDOUR { namespace LuaAPI {
*/
float get_processor_param (boost::shared_ptr<Processor> proc, uint32_t which, bool &ok);
+ /** reset a processor to its default values (only works for plugins )
+ *
+ * This is a wrapper which looks up the Processor by plugin-insert.
+ *
+ * @param proc Plugin-Insert
+ * @returns true on success, false when the processor is not a plugin
+ */
+ bool reset_processor_to_default (boost::shared_ptr<Processor> proc);
+
/** set a plugin control-input parameter value
*
* This is a wrapper around set_processor_param which looks up the Processor by plugin-insert.