Skip to content

Commit

Permalink
Be more resliient under null cookie condition
Browse files Browse the repository at this point in the history
and share that code via plugininfra
  • Loading branch information
baconpaul committed Jan 18, 2025
1 parent 46bb6ab commit 9ee42c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/sst/sst-plugininfra
8 changes: 6 additions & 2 deletions src/clap/six-sines-clap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,12 @@ struct SixSinesClap : public plugHelper_t, sst::clap_juce_shim::EditorProvider
case CLAP_EVENT_PARAM_VALUE:
{
auto pevt = reinterpret_cast<const clap_event_param_value *>(nextEvent);
engine->handleParamValue(static_cast<baconpaul::six_sines::Param *>(pevt->cookie),
pevt->param_id, pevt->value);
auto par =
sst::plugininfra::patch_support::paramFromClapEvent<Param>(pevt, engine->patch);
if (par)
{
engine->handleParamValue(par, pevt->param_id, pevt->value);
}
}
break;

Expand Down

0 comments on commit 9ee42c8

Please sign in to comment.