1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

WASAPI: Find a supported format before querying for supported sample rates when opening an exclusive mode stream

This commit is contained in:
ed 2020-10-06 15:23:34 +01:00 committed by Tom Poole
parent f61edf4c09
commit 7e58ace377

View file

@ -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);
}