You are reading help file online using chmlib.com
|
The following methods may be used to construct the instance.
Initializes the class members to null values
CSpStreamFormat( void );
None.
Formats the instance into a wave format structure. The new format and format ID are passed back from the class' public members, m_pCoMemWaveFormatEx and m_guidFormatId respectively.
CSpStreamFormat(
SPSTREAMFORMAT eFormat,
HRESULT *phr
);
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_OUTOFMEMORY | Exceeded available memory. |
E_INVALIDARG | Either class member m_guidFormatId or m_pCoMemWaveFormatEx is invalid or bad. Alternatively, the current format is not recognized. |
FAILED(hr) | Appropriate error message. |
Formats the instance according to the format structure specified.
CSpStreamFormat(
const WAVEFORMATEX *pWaveFormatEx,
HRESULT *phr
);
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_OUTOFMEMORY | Exceeded available memory. |
You are reading help file online using chmlib.com
|