From e28e22989e2093971269f61da09c16be8aff0c89 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 6 Oct 2020 15:23:34 +0100 Subject: [PATCH] WASAPI: Find a supported format before querying for supported sample rates when opening an exclusive mode stream --- modules/juce_audio_devices/native/juce_win32_WASAPI.cpp | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 modules/juce_audio_devices/native/juce_win32_WASAPI.cpp diff --git a/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp b/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp old mode 100644 new mode 100755 index f0d808d6de..38daf1cdca --- a/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp +++ b/modules/juce_audio_devices/native/juce_win32_WASAPI.cpp @@ -424,6 +424,9 @@ public: rates.addUsingDefaultSort (defaultSampleRate); mixFormatChannelMask = format.dwChannelMask; + if (isExclusiveMode (deviceMode)) + findSupportedFormat (tempClient, defaultSampleRate, mixFormatChannelMask, format); + querySupportedBufferSizes (format, tempClient); querySupportedSampleRates (format, tempClient); }