diff --git a/src/sfizz/Synth.cpp b/src/sfizz/Synth.cpp index 3365f791..4103f388 100644 --- a/src/sfizz/Synth.cpp +++ b/src/sfizz/Synth.cpp @@ -194,6 +194,9 @@ void sfz::Synth::clear() { const std::lock_guard disableCallback { callbackGuard }; + // Clear the background queues before removing everyone + resources.filePool.waitForBackgroundLoading(); + for (auto& voice : voices) voice->reset(); for (auto& list : noteActivationLists)