IMiniportAudioEngineNode::SetDeviceFormat method (portcls.h)

Sets the audio data format for an audio device.

Syntax

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

Parameters

[in] ulNodeId

The ID of the node that represents the device.

[in] pFormat

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

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

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

See also

IMiniportAudioEngineNode

KSDATAFORMAT_WAVEFORMATEX