There are various complicated ways* to drop hints to Windows that, of the many
formats you support, you would prefer one or the other. But the simplest
approach is to only support the format you actually want to use… that is, limit
Windows to a single option.
*For example, in addition to PKEY_AudioEngine_OEMFormat, there is
KSDATAFORMAT_PIN_PROPOSEDATAFORMAT2:
https://msdn.microsoft.com/en-us/library/windows/hardware/dn567589(v=vs.85).aspx
From: wdmaudiodev-bounce@xxxxxxxxxxxxx
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of ambrish dantrey
Sent: Tuesday, February 16, 2016 1:14 PM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: Default channel format for MsVAD driver
Found something interesting. Seems like this can be used:
https://msdn.microsoft.com/en-us/library/windows/hardware/ff537752(v=vs.85).aspx
Anyone familiar with this? What's the intended usecase for this if driver is
not supposed to set default stream format, as Tim pointed out.
ambrish dantrey wrote:
Cool, thanks again.
Just out of curiosity, if I had a case that mandated support for other
formats too, what options would I have? Can a driver specify the
channel config it wants the endpoint to come up in at the time of
endpoint registration?