IMiniportAudioEngineNode::SetDeviceFormat method

Sets the audio data format for an audio device.

Syntax

NTSTATUS SetDeviceFormat(
  ULONG                     ulNodeId,
  KSDATAFORMAT_WAVEFORMATEX *pFormat,
  ULONG                     ulBufferSize
);

Parameters

ulNodeId

The ID of the node that represents the device.

pFormat

A structure of type KSDATAFORMAT_WAVEFORMATEX that represents the audio data format to be set for the device.

ulBufferSize

The audio data buffer size.

Return value

SetDeviceFormat 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

IMiniportAudioEngineNode

KSDATAFORMAT_WAVEFORMATEX