Share via


IAudioLoudness Interface

Previous Next

IAudioLoudness Interface

The IAudioLoudness interface provides access to a "loudness" compensation control. The client obtains a reference to the IAudioLoudness interface of a subunit by calling the IPart::Activate method with parameter refiid set to REFIID IID_IAudioLoudness. The call to IPart::Activate succeeds only if the subunit supports the IAudioLoudness interface. Only a subunit object that represents a hardware loudness control function will support this interface.

Most Windows audio adapter drivers support the Windows Driver Model (WDM) and use kernel-streaming (KS) properties to represent the hardware control parameters in subunits (referred to as KS nodes). The IAudioLoudness interface provides convenient access to the KSPROPERTY_AUDIO_LOUDNESS property of a subunit that has a subtype GUID value of KSNODETYPE_LOUDNESS. To obtain the subtype GUID of a subunit, call the IPart::GetSubType method. For more information about KS properties and KS node types, see the Windows DDK documentation.

IAudioLoudness inherits from the IUnknown interface. In addition to the methods inherited from IUnknown, IAudioLoudness supports the following methods.

Method Description
GetEnabled Gets the current state (enabled or disabled) of the loudness control.
SetEnabled Enables or disables the loudness control.

Requirements

Client: Windows Vista

Header: Include Devicetopology.h.

See Also

Previous Next