Add the panic to the VST processor
This commit is contained in:
parent
7d625bc736
commit
98392a7b9a
1 changed files with 3 additions and 2 deletions
|
|
@ -114,12 +114,13 @@ tresult PLUGIN_API SfizzVstProcessor::setActive(TBool state)
|
|||
return kResultFalse;
|
||||
|
||||
if (state) {
|
||||
_synth->setSampleRate(processSetup.sampleRate);
|
||||
_synth->setSamplesPerBlock(processSetup.maxSamplesPerBlock);
|
||||
synth->setSampleRate(processSetup.sampleRate);
|
||||
synth->setSamplesPerBlock(processSetup.maxSamplesPerBlock);
|
||||
|
||||
_workRunning = true;
|
||||
_worker = std::thread([this]() { doBackgroundWork(); });
|
||||
} else {
|
||||
synth->allSoundOff();
|
||||
stopBackgroundWork();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue