Expand Minimize
This topic has not yet been rated - Rate this topic

KSPROPERTY_AUDIO_PEAKMETER2

The KSPROPERTY_AUDIO_PEAKMETER2 property is available in Windows 8 and later operating systems. This property retrieves the maximum audio signal level that occurred at a peakmeter node (KSNODETYPE_PEAKMETER) since the last time the peakmeter node was reset.

Usage Summary Table

GetSetTargetProperty descriptor typeProperty value type

Yes

No

Pin

KSNODEPROPERTY_AUDIO_CHANNEL

LONG

 

The property value (operation data) is of type LONG and specifies the peak sample value at the node. If the peak value is negative, its absolute value is used.

Return Value

A KSPROPERTY_AUDIO_PEAKMETER2 property request returns STATUS_SUCCESS to indicate that it has completed successfully. Otherwise, the request returns an appropriate error status code. The following table shows a possible error status code.

Status CodeMeaning

STATUS_NOT_IMPLEMENTED

The KS filter cannot return the current value of the peakmeter.

 

Remarks

The KSPROPERTY_AUDIO_PEAKMETER2 property is almost identical to the KSPROPERTY_AUDIO_PEAKMETER property. The KSPROPERTY_AUDIO_PEAKMETER2 property was introduced with Windows 8 and later operating systems to provide improved hardware metering of a pin topology. The legacy KSPROPERTY_AUDIO_PEAKMETER property has been retained for backward compatibility.

A KS audio filter handles this property request synchronously. If the request succeeds, it resets the peakmeter, which initializes the accumulated peak value to zero. If the request does not succeed, the peakmeter is not changed.

The system sends an IOCTL_KS_PROPERTY request for the KSPROPERTY_AUDIO_PEAKMETER property at IRQL PASSIVE_LEVEL.

Requirements

Header

Ksmedia.h (include Ksmedia.h)

See also

KSNODEPROPERTY_AUDIO_CHANNEL
KSNODETYPE_PEAKMETER
KSPROPERTY_AUDIO_PEAKMETER

 

 

Send comments about this topic to Microsoft

Build date: 11/30/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.