[wdmaudiodev] Re: Is there a way to list all supported format of an audio device

  • From: Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Sat, 17 Aug 2013 01:43:42 +0000

It is possible that a driver will support formats beyond those it advertises in 
its KS Data Ranges; you can use KSPROPERTY_PIN_PROPOSEDATAFORMAT / SET to query 
whether a particular format is supported. Or go straight to KsCreatePin.

I'm not aware of any audio drivers that support compressed offload. Compressed 
exclusive mode on the host pin, sure (e.g., HDMI); but not compressed offload.

From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Andrew Sha......
Sent: Friday, August 16, 2013 6:12 PM
To: wdmaudiodev wdmaudiodev
Subject: [wdmaudiodev] Re: Is there a way to list all supported format of an 
audio device

Hmm, did this already, but it does not show compressed formats that I know can 
be offloaded for sure

________________________________
From: Matthew.van.Eerde@xxxxxxxxxxxxx<mailto:Matthew.van.Eerde@xxxxxxxxxxxxx>
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: Is there a way to list all supported format of an 
audio device
Date: Sat, 17 Aug 2013 00:43:25 +0000
Next step is to query KSPROPERTY_PIN_DATARANGES on the offload pin factory. KS 
Studio will also show you this information.

From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx> 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Andrew Sha......
Sent: Friday, August 16, 2013 4:47 PM
To: wdmaudiodev wdmaudiodev
Subject: [wdmaudiodev] Re: Is there a way to list all supported format of an 
audio device

Exactly!

It looks like KSPROPERTY_AUDIOENGINE_DESCRIPTOR gives me the nOffloadPinId, 
then what?

I am in the user mode at the moment

________________________________
From: Matthew.van.Eerde@xxxxxxxxxxxxx<mailto:Matthew.van.Eerde@xxxxxxxxxxxxx>
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: Is there a way to list all supported format of an 
audio device
Date: Fri, 16 Aug 2013 23:38:20 +0000
That returns the list of formats that the audio device can support at the DAC. 
You probably want the list of formats it supports for KsCreatePin.

From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx> 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Andrew Sha......
Sent: Friday, August 16, 2013 4:27 PM
To: wdmaudiodev wdmaudiodev
Subject: [wdmaudiodev] Re: Is there a way to list all supported format of an 
audio device

I am using KS and my first attempt was to leverage the 
KSPROPERTY_AUDIOENGINE_SUPPORTEDDEVICEFORMATS but it does not look like it 
returns what I was expecting

________________________________
From: Matthew.van.Eerde@xxxxxxxxxxxxx<mailto:Matthew.van.Eerde@xxxxxxxxxxxxx>
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: Is there a way to list all supported format of an 
audio device
Date: Fri, 16 Aug 2013 23:11:17 +0000
What API are you using to stream?

If you're using WASAPI, you can call IAudioClient2::SetClientProperties(...) 
and then IAudioClient::IsFormatSupported(...).

If you're using KS, you can look at the data ranges exposed by the offload pin 
factory.

From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx> 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Andrew Sha......
Sent: Friday, August 16, 2013 3:59 PM
To: wdmaudiodev wdmaudiodev
Subject: [wdmaudiodev] Re: Is there a way to list all supported format of an 
audio device

Hardware-Offloaded Audio Processing

http://msdn.microsoft.com/en-us/library/windows/hardware/dn302038(v=vs.85).aspx<http://msdn.microsoft.com/en-us/library/windows/hardware/dn302038%28v=vs.85%29.aspx>

So how to discover offloaded formats?

________________________________
From: Robert.Bielik@xxxxxxxxx<mailto:Robert.Bielik@xxxxxxxxx>
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Re: Is there a way to list all supported format of an 
audio device
Date: Fri, 16 Aug 2013 06:17:17 +0000
To find out the supported formats, you need to enumerate all possible formats 
and ask the device (driver) whether
the format is supported or not. But I have no idea what "offloaded" means ? :)

Regards,
/Rob

From: wdmaudiodev-bounce@xxxxxxxxxxxxx<mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx> 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Andrew Sha......
Sent: den 16 augusti 2013 00:44
To: wdmaudiodev wdmaudiodev
Subject: [wdmaudiodev] Is there a way to list all supported format of an audio 
device

Hi Audio

Is there a way to list all supported formats of an audio device and find out 
which can be offloaded?

Thanks in advance
Andrew

Other related posts: