Skip to content

Commit

Permalink
clearing parameters should clear the parameter in the vst3 param tree…
Browse files Browse the repository at this point in the history
…, too (#236)
  • Loading branch information
defiantnerd authored Mar 10, 2024
1 parent cef9bb5 commit a62520c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/wrapasvst3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,13 @@ void ClapAsVst3::param_rescan(clap_param_rescan_flags flags)

void ClapAsVst3::param_clear(clap_id param, clap_param_clear_flags flags)
{
auto vst3id = param & 0x7FFFFFFF;
// auto* p = (Vst3Parameter*)(parameters.getParameter(param & 0x7FFFFFFF));
if (flags & CLAP_PARAM_CLEAR_ALL)
{
this->parameters.removeParameter(vst3id);
}
// all other flags can not be really mapped to VST3 functions
}

// request_flush requests a defered call to flush if there is no processing
Expand Down

0 comments on commit a62520c

Please sign in to comment.