mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 21:56:30 +01:00
Expose a new lua hook for resetting a plugin processor ( convenience func only: this avoids the necessity of an extra cast to PlugInsert )
This commit is contained in:
parent
0d7f88afbd
commit
bfebad3dce
3 changed files with 21 additions and 0 deletions
|
|
@ -207,6 +207,17 @@ ARDOUR::LuaAPI::get_processor_param (boost::shared_ptr<Processor> proc, uint32_t
|
|||
return get_plugin_insert_param (pi, which, ok);
|
||||
}
|
||||
|
||||
bool
|
||||
ARDOUR::LuaAPI::reset_processor_to_default ( boost::shared_ptr<Processor> proc )
|
||||
{
|
||||
boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (proc);
|
||||
if (pi) {
|
||||
pi->reset_parameters_to_default();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
int
|
||||
ARDOUR::LuaAPI::plugin_automation (lua_State *L)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue