[wdmaudiodev] Re: Peakmeters on Vista build 5472

  • From: "Jeff Pages" <jeff@xxxxxxxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Mon, 25 Sep 2006 11:46:00 +1000

Just for the record, the IAudioMeterInformation interface is working fine under 
RC1 with our hardware peak meters, so whatever the bug was I was hitting with 
the earlier releases, it's been fixed. Thanks guys.

Jeff
  ----- Original Message ----- 
  From: Mitchell Rundle 
  To: wdmaudiodev@xxxxxxxxxxxxx 
  Sent: Saturday, August 19, 2006 3:51 AM
  Subject: [wdmaudiodev] Re: Peakmeters on Vista build 5472


  Jeff, you might be seeing a bug that we recently fixed.  How many channels 
are supported on this device?  What is the speaker config set to? (goto 
mmsys.cpl -> select the device -> click "Configure").

  If the speaker config is not stereo, set it to stereo and see if this repros. 
 

  Thanks
  Mitch Rundle
  Microsoft Corp.



------------------------------------------------------------------------------
  From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of Jeff Pages
  Sent: Thursday, August 17, 2006 6:13 PM
  To: wdmaudiodev@xxxxxxxxxxxxx
  Subject: [wdmaudiodev] Peakmeters on Vista build 5472


  Our sound cards provide hardware peak meters on playback and record. Using 
the IDeviceTopology interface, I can find the meters and read them 
successfully, but with the IAudioMeterInformation interface, 
GetChannelsPeakValues returns E_INVALIDARG if I set u32ChannelCount to 2 (even 
though IAudioEndpointVolume::GetChannelCount returns 2). The only way I can get 
GetChannelsPeakValues to return S_OK is to set u32ChannelCount to 0, and of 
course if I do that I don't get any meter readings returned.

  I understand this interface will provide virtual meters if the hardware 
doesn't have them, and that seems to work. Has anyone managed to get 
IAudioMeterInformation to work on a device that has hardware peak meters?

  Jeff Pages
  Innes Corporation Pty Ltd

Other related posts: