Skip to content

Commit

Permalink
WASAPI: Find a supported format before querying for supported sample …
Browse files Browse the repository at this point in the history
…rates when opening an exclusive mode stream
  • Loading branch information
ed95 committed Oct 6, 2020
1 parent e043408 commit e28e229
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/juce_audio_devices/native/juce_win32_WASAPI.cpp 100644 → 100755
Expand Up @@ -424,6 +424,9 @@ class WASAPIDeviceBase
rates.addUsingDefaultSort (defaultSampleRate);
mixFormatChannelMask = format.dwChannelMask;

if (isExclusiveMode (deviceMode))
findSupportedFormat (tempClient, defaultSampleRate, mixFormatChannelMask, format);

querySupportedBufferSizes (format, tempClient);
querySupportedSampleRates (format, tempClient);
}
Expand Down

0 comments on commit e28e229

Please sign in to comment.