title: WASAPI: Choosing a wave format for exclusive output
body: <p>I'm trying to open an exclusive stream with an output device using WASAPI.  I'm having trouble choosing an acceptable format, since there appear to be no hints as to what formats are accepted by a given device.</p>
  
  <p>In my case, <code>IAudioClient::GetMixFormat()</code>, which would otherwise return a sort of default format for the device, returns a format that can't be used in exclusive mode (<code>IAudioClient::IsFormatSupported()</code> returns <code>AUDCLNT_E_UNSUPPORTED_FORMAT</code>).  I don't know where to go from there.  There's a ridiculous number of combinations of wave format parameters  - do I literally have to iterate through every one of them until something works?</p>