[wdmaudiodev] Re: WASAPI exclusive mode audio render issue
- From: Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx>
- To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
- Date: Thu, 17 Sep 2015 18:25:45 +0000
In general, I'm forced to use ... the engine's preferred format (for
non-exclusive).
You can pass AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM as a stream flag to
IAudioClient::Initialize, to have WASAPI insert a format converter in the
stream pipe. You will also want to specify the
AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY flag so that the sample rate converter
uses a high-quality algorithm.
Starting in Windows 10, you can also pass AUDCLNT_STREAMOPTIONS_MATCH_FORMAT to
IAudioClient2::SetClientProperties. This will tell WASAPI to build the whole
app-to-device pipe using the format you specify.
******************
WDMAUDIODEV addresses:
Post message:
mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:
mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:
mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:
mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx
URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/
Other related posts: