[wdmaudiodev] Re: IAudioMeterInformation::GetChannelsPeakValues error if driver supports more than 2 channels

  • From: "Matthew van Eerde" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "Matthew.van.Eerde" for DMARC)
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Thu, 20 Jun 2019 18:26:48 +0000

Let’s start by assuming it’s a bug; please file a problem report in Feedback 
Hub, including “recreate my problem” logs of a failed attempt to query 
IAudioMeterInformation::GetChannelsPeakValues with KSPROPERTY_AUDIO_PEAKMETER2.



________________________________
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-bounce@xxxxxxxxxxxxx> on 
behalf of Eugene Muzychenko <reg.wad@xxxxxxxxxxxxxx>
Sent: Thursday, June 20, 2019 11:24:09 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] IAudioMeterInformation::GetChannelsPeakValues error if 
driver supports more than 2 channels

Trying to understand why Windows 10 does not show peak signal levels
in the endpoint properties window for my driver endpoints, I faced
with the strange behavior.

If the driver supports just two channels for the pin and peak meter
node, all works fine.

If the driver supports more than two channels (for example, 8),
KSPROPERTY_AUDIO_PEAKMETER2 is repeatedly requested for all
filters/channels, but there is no peak display in the window.

Making a small IAudioMeterInformation test, I found that
IAudioMeterInformation::GetMeteringChannelCount returns number of
supported channels properly, then
IAudioMeterInformation::GetChannelsPeakValues sends
KSPROPERTY_AUDIO_PEAKMETER2 to query a peak of each channel, but
always returns E_INVALIDARG.

E_INVALIDARG is returned regardless of number of channels specified in the
call GetChannelsPeakValues. The call succeeds only if I decrease
the number of channels supported by the driver, to two.

Should such behavior be considered a bug, or there are some
non-obvious conditions?

BTW, if I disable KSPROPERTY_AUDIO_PEAKMETER2 support, Audio Engine
issues KSPROPERTY_AUDIO_PEAKMETER requests, and all works fine for any
number of supported channels.

******************

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:
https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.wdmaudiodev.com%2F&amp;data=02%7C01%7CMatthew.van.Eerde%40microsoft.com%7C82195481b2fc4c1b992908d6f5ac9088%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636966518921183374&amp;sdata=NzQe%2F9uakvjFD7YNm2Mp1ugkUK%2FEZLMe6AfWNW3zS88%3D&amp;reserved=0

Other related posts: