don't assume that there is an AutomationControl for every signalled control
change from ::lv2_ui_write() git-svn-id: svn://localhost/ardour2/branches/3.0@9328 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
574ef8d61b
commit
75bea74412
|
@ -43,7 +43,11 @@ LV2PluginUI::lv2_ui_write(LV2UI_Controller controller,
|
|||
const void* buffer)
|
||||
{
|
||||
LV2PluginUI* me = (LV2PluginUI*)controller;
|
||||
me->_controllables[port_index]->set_value(*(float*)buffer);
|
||||
boost::shared_ptr<AutomationControl> ac = me->_controllables[port_index];
|
||||
|
||||
if (ac) {
|
||||
ac->set_value(*(float*)buffer);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue
Block a user