Skip to content

Commit

Permalink
Prevent infinite loop between CLAP plugin and VST3 wrapper if CLAP pl…
Browse files Browse the repository at this point in the history
…ugin reports changed latency during activate()
  • Loading branch information
David Schornsheim committed Feb 26, 2024
1 parent 45b69bc commit 1500382
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wrapasvst3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,9 @@ void ClapAsVst3::request_callback()

void ClapAsVst3::restartPlugin()
{
if (componentHandler) componentHandler->restartComponent(Vst::RestartFlags::kReloadComponent);
if (componentHandler)
componentHandler->restartComponent(Vst::RestartFlags::kIoChanged |
Vst::RestartFlags::kLatencyChanged);
}

void ClapAsVst3::onBeginEdit(clap_id id)
Expand Down

0 comments on commit 1500382

Please sign in to comment.