Microsoft DirectX 8.1 (C++) |
Sets the format for the stream.
Syntax
HRESULT SetFormat(
const WAVEFORMATEX *lpWaveFormat
);
Parameters
lpWaveFormat
[in] Pointer to a WAVEFORMATEX structure that contains stream format information.
Return Value
Returns an HRESULT value, which can include the following values or others not listed.
Return code | Description |
MS_E_INCOMPATIBLE | Format of the IAudioData object is not compatible with stream. |
E_INVALIDARG | Invalid argument. |
E_POINTER | Null pointer argument. |
S_OK | Success. |
See Also