Remove the unnecessary try-lock, processing the parameters

This commit is contained in:
Jean Pierre Cimalando 2020-03-07 13:42:11 +01:00 committed by Paul Fd
parent 126dd49e28
commit 41810f9994

View file

@ -119,10 +119,8 @@ tresult PLUGIN_API SfizzVstProcessor::process(Vst::ProcessData& data)
{
sfz::Sfizz& synth = *_synth;
if (Vst::IParameterChanges* pc = data.inputParameterChanges) {
std::unique_lock<std::mutex> lock(_processMutex, std::try_to_lock);
if (Vst::IParameterChanges* pc = data.inputParameterChanges)
processParameterChanges(*pc);
}
if (data.numOutputs < 1) // flush mode
return kResultTrue;