Clear the loading queues before changing the file
This commit is contained in:
parent
b04f6a73b9
commit
49b66c2ba9
1 changed files with 3 additions and 0 deletions
|
|
@ -194,6 +194,9 @@ void sfz::Synth::clear()
|
|||
{
|
||||
const std::lock_guard<SpinMutex> disableCallback { callbackGuard };
|
||||
|
||||
// Clear the background queues before removing everyone
|
||||
resources.filePool.waitForBackgroundLoading();
|
||||
|
||||
for (auto& voice : voices)
|
||||
voice->reset();
|
||||
for (auto& list : noteActivationLists)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue