Merge branch 'hotfix/protect-clear-function'
This commit is contained in:
commit
e22f0950dd
1 changed files with 5 additions and 0 deletions
|
|
@ -108,6 +108,11 @@ void sfz::Synth::buildRegion(const std::vector<Opcode>& regionOpcodes)
|
|||
|
||||
void sfz::Synth::clear()
|
||||
{
|
||||
AtomicDisabler callbackDisabler { canEnterCallback };
|
||||
while (inCallback) {
|
||||
std::this_thread::sleep_for(1ms);
|
||||
}
|
||||
|
||||
for (auto &voice: voices)
|
||||
voice->reset();
|
||||
for (auto& list: noteActivationLists)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue