Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clearing parameters should clear the parameter in the vst3 param tree #236

Merged
merged 1 commit into from
Mar 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading