IAudioMediaStream::SetFormat
Microsoft DirectShow 9.0 |
IAudioMediaStream::SetFormat
- Note This interface is deprecated. New applications should not use it.
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 Values
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