KSAUDIOENGINE_VOLUMELEVEL structure (ksmedia.h)

The KSAUDIOENGINE_VOLUMELEVEL structure specifies the target volume level, ramp type, and duration within which the volume level should change, for a given volume level request via the KSPROPERTY_AUDIOENGINE_VOLUMELEVEL property.

Syntax

typedef struct _tagKSAUDIOENGINE_VOLUMELEVEL {
  LONG             TargetVolume;
  AUDIO_CURVE_TYPE CurveType;
  ULONGLONG        CurveDuration;
} KSAUDIOENGINE_VOLUMELEVEL, *PKSAUDIOENGINE_VOLUMELEVEL;

Members

TargetVolume

Specifies the desired final volume level using the scale defined for the KSPROPERTY_AUDIOENGINE_VOLUMELEVEL property.

CurveType

Uses the AUDIO_CURVE_TYPE enumeration to specify the curve algorithm to apply over the duration specified, in order to reach the desired level. The curve begins at the current volume level and ends at the target volume level specified in the TargetVolume parameter.

CurveDuration

Specifies the duration, in hundreds of nanoseconds, over which the volume curve must take effect.

Requirements

Requirement Value
Minimum supported client Windows 8
Header ksmedia.h

See also

AUDIO_CURVE_TYPE

KSPROPERTY_AUDIOENGINE_VOLUMELEVEL