[wdmaudiodev] Re: Default Sampling Rate

  • From: Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Mon, 30 Apr 2012 16:27:09 +0000

If the device supports GET requests of the KSPROPERTY_PIN_PROPOSEDATAFORMAT 
property, you can assume that this is the device's preferred format.  If the 
device supports this, Windows will (usually) have that be the default format 
(though the user can still change the default to a different format.)



If the device does not support GET requests of the 
KSPROPERTY_PIN_PROPOSEDATAFORMAT, then it comes down to figuring out what 
formats the device supports.  Windows has a list of formats that it will try, 
and the device can expose KS data ranges with specific sample rates.



In addition to the below, you may come across devices that natively support 8 
kHz (so you will not need a conversion at all.)



________________________________

From: wdmaudiodev-bounce@xxxxxxxxxxxxx [wdmaudiodev-bounce@xxxxxxxxxxxxx] on 
behalf of Finn William-A19681 [wfinn@xxxxxxxxxxxxxxxxxxxxx]
Sent: Monday, April 30, 2012 7:10 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Cc: Finn William-A19681
Subject: [wdmaudiodev] Default Sampling Rate

Hi All,

I am not developing an audio device driver, but rather I am interested in 
finding out the default sampling rate for a given device. I am developing an 
application that must operate on 8 kHz sampled data. I currently support 
resampling to/from 48k, 44.1k, 22.05k, and 16k endpoint sampling rates. 
However, during testing, I came across a device using a 32 kHz sampling rate, 
and I want to figure out if a user intentionally changed the sampling rate to 
32 kHz or if it was the default sampling rate at installation.

TL;DR: Is there an easy way to find the default sampling rate for a given 
input/output device in Windows?

Thanks,
Bill

Other related posts: