Skip to content

Commit

Permalink
Fix misbehaving host issue
Browse files Browse the repository at this point in the history
  • Loading branch information
David Schornsheim committed Feb 26, 2024
1 parent e283df5 commit bbe9f89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wrapasvst3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -897,12 +897,13 @@ void ClapAsVst3::onIdle()
std::lock_guard lock(_processingLock);

_requestedFlush = false;
if (!_processing)
if (!_active)
{
// setup a ProcessAdapter just for flush with no audio
Clap::ProcessAdapter pa;
pa.setupProcessing(_plugin->_plugin, _plugin->_ext._params, audioInputs, audioOutputs, 0, 0, 0,
this->parameters, componentHandler, nullptr, false, false);
auto thisFn = _plugin->AlwaysMainThread();
pa.flush();
}
}
Expand Down

0 comments on commit bbe9f89

Please sign in to comment.