IHardwareAudioEngineBase::SetEngineDeviceFormat method (audioengineendpoint.h)

The SetEngineDeviceFormat method sets the waveform audio format for the hardware audio engine.

Syntax

HRESULT SetEngineDeviceFormat(
  [in] IMMDevice    *pDevice,
  [in] WAVEFORMATEX *_pwfxFormat
);

Parameters

[in] pDevice

A pointer to an IMMDevice interface.

[in] _pwfxFormat

A pointer to a WAVEFORMATEX structure that provides information about the hardware audio engine.

Return value

The SetEngineDeviceFormat method returns S_OK to indicate that it has completed successfully. Otherwise it returns an appropriate error code.

Requirements

Requirement Value
Target Platform Windows
Header audioengineendpoint.h

See also

IHardwareAudioEngineBase

IMMDevice