mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Fix wrongly exposed set_parameter methods on PluginInsert.
Have plugin GUI stuff twiddle plugin parameters correctly. git-svn-id: svn://localhost/ardour2/branches/3.0@3957 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
2065092d25
commit
b3634a723d
5 changed files with 29 additions and 12 deletions
|
|
@ -683,7 +683,7 @@ void
|
|||
GenericPluginUI::control_port_toggled (ControlUI* cui)
|
||||
{
|
||||
if (!cui->ignore_change) {
|
||||
insert->set_parameter (cui->parameter(), cui->button->get_active());
|
||||
insert->automation_control(cui->parameter())->set_value(cui->button->get_active());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -693,9 +693,8 @@ GenericPluginUI::control_combo_changed (ControlUI* cui)
|
|||
if (!cui->ignore_change) {
|
||||
string value = cui->combo->get_active_text();
|
||||
std::map<string,float> mapping = *cui->combo_map;
|
||||
insert->set_parameter (cui->parameter(), mapping[value]);
|
||||
insert->automation_control(cui->parameter())->set_value(mapping[value]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue