IHardwareAudioEngineBase::SetEngineDeviceFormat 方法 (audioengineendpoint.h)
SetEngineDeviceFormat 方法设置硬件音频引擎的波形音频格式。
语法
HRESULT SetEngineDeviceFormat(
[in] IMMDevice *pDevice,
[in] WAVEFORMATEX *_pwfxFormat
);
参数
[in] pDevice
指向 IMMDevice 接口的指针。
[in] _pwfxFormat
指向 WAVEFORMATEX 结构的指针,该结构提供有关硬件音频引擎的信息。
返回值
SetEngineDeviceFormat 方法返回S_OK指示它已成功完成。 否则,它将返回相应的错误代码。
要求
要求 | 值 |
---|---|
目标平台 | Windows |
标头 | audioengineendpoint.h |