diff --git a/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp b/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp index def3648a8c..877aaa129b 100644 --- a/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp +++ b/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp @@ -454,6 +454,10 @@ public: if (client != nullptr) client->Stop(); + // N.B. this is needed to prevent a double-deletion of the IAudioSessionEvents object + // on older versions of Windows + Thread::sleep (5); + deleteSessionEventCallback(); client = nullptr; ResetEvent (clientEvent);