Thanks Mitch,
Jeff
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
******************
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/