IMiniportStreamAudioEngineNode::SetStreamChannelVolume method

Sets the volume level to be applied to the audio stream.

Syntax

NTSTATUS SetStreamChannelVolume(
  UINT32           Channel,
  LONG             TargetVolume,
  AUDIO_CURVE_TYPE CurveType,
  ULONGLONG        CurveDuration
);

Parameters

Channel

The audio stream channel.

TargetVolume

The volume level to be applied to the audio stream.

CurveType

The curve algorithm that will be used to set the volume level. The curve types are represented by the members of the AUDIO_CURVE_TYPE enum.

CurveDuration

The length of time over which the curve algorithm will be applied.

Return value

SetStreamChannelVolume returns S_OK, if the call was successful. Otherwise, the method returns an appropriate error

code.

Requirements

   
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Universal
Header portcls.h

See also

IMiniportStreamAudioEngineNode