Bewerken

Delen via


IMiniportStreamAudioEngineNode::SetStreamChannelVolume method (portcls.h)

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

Syntax

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

Parameters

[in] Channel

The audio stream channel.

[in] TargetVolume

The volume level to be applied to the audio stream.

[in] 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.

[in] 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

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

See also

IMiniportStreamAudioEngineNode