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:
parent
e043408224
commit
e28e22989e
1 changed files with 3 additions and 0 deletions
3
modules/juce_audio_devices/native/juce_win32_WASAPI.cpp
Normal file → Executable file
3
modules/juce_audio_devices/native/juce_win32_WASAPI.cpp
Normal file → Executable 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue