IHardwareAudioEngineBase::GetEngineFormat method (audioengineendpoint.h)
The GetEngineFormat method retrieves the current data format of the offloaded audio stream.
Syntax
HRESULT GetEngineFormat(
[in] IMMDevice *pDevice,
[in] BOOL _bRequestDeviceFormat,
[out] WAVEFORMATEX **_ppwfxFormat
);
Parameters
[in] pDevice
A pointer to an IMMDevice interface.
[in] _bRequestDeviceFormat
A Boolean variable that indicates whether or not the IMMDevice interface is being accessed to retrieve the device format.
[out] _ppwfxFormat
A pointer to a pointer to a WAVEFORMATEX structure that provides information about the hardware audio engine. This includes the waveform audio format type, the number of audio channels, and the sample rate of the audio engine.
Return value
The GetEngineFormat 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 |