Microsoft DirectX 9.0 |
The SetFormat method sets the current data format.
Syntax
HRESULT SetFormat(
const WAVEFORMATEX *lpWaveFormat
);
Parameters
lpWaveFormat
[in] Pointer to a WAVEFORMATEX structure that will contain the current data format.
Return Values
Returns an HRESULT value, which can include the following values.
Return code | Description |
E_POINTER | Invalid pointer argument. |
E_INVALIDARG | Invalid format. |
S_OK | Success. |
See Also