Browse Source

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

tags/2021-05-28
ed 4 years ago
parent
commit
e28e22989e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_audio_devices/native/juce_win32_WASAPI.cpp

+ 3
- 0
modules/juce_audio_devices/native/juce_win32_WASAPI.cpp 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);
}


Loading…
Cancel
Save