1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +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
parent e043408224
commit e28e22989e

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