if (which < descriptor->PortCount) {
shadow_data[which] = (LADSPA_Data) val;
#if 0
- ParameterChanged (ParamID(PluginAutomation, which), val); /* EMIT SIGNAL */
+ ParameterChanged (Parameter(PluginAutomation, which), val); /* EMIT SIGNAL */
if (which < parameter_count() && controls[which]) {
controls[which]->Changed ();
}
string
-LadspaPlugin::describe_parameter (ParamID which)
+LadspaPlugin::describe_parameter (Parameter which)
{
if (which.type() == PluginAutomation && which.id() < parameter_count()) {
return port_names()[which.id()];
}
}
-set<ParamID>
+set<Parameter>
LadspaPlugin::automatable () const
{
- set<ParamID> ret;
+ set<Parameter> ret;
for (uint32_t i = 0; i < parameter_count(); ++i){
if (LADSPA_IS_PORT_INPUT(port_descriptor (i)) &&
LADSPA_IS_PORT_CONTROL(port_descriptor (i))){
- ret.insert (ret.end(), ParamID(PluginAutomation, i));
+ ret.insert (ret.end(), Parameter(PluginAutomation, i));
}
}
port_index++;
}
- run (nframes);
+ run_in_place (nframes);
now = get_cycles ();
set_cycles ((uint32_t) (now - then));
}
void
-LadspaPlugin::run (nframes_t nframes)
+LadspaPlugin::run_in_place (nframes_t nframes)
{
for (uint32_t i = 0; i < parameter_count(); ++i) {
if (LADSPA_IS_PORT_INPUT(port_descriptor (i)) && LADSPA_IS_PORT_CONTROL(port_descriptor (i))) {
port_index++;
}
- run (bufsize);
+ run_in_place (bufsize);
deactivate ();
}