|
| Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab. |
You are reading help file online using chmlib.com
|
Microsoft Speech SDK
SAPI 5.1
CSpStreamFormat::AssignFormat
CSpStreamFormat::AssignFormat assigns (or copies) the instance's current format to a new format (or a new stream).
Converts the instance's stream format into a wave format structure.
HRESULT AssignFormat(
SPSTREAMFORMAT eFormat
);
Parameters
- eFormat
- [in] The requested stream format. Must be a valid SPSTREAMFORMAT value of SPSF_8kHz8BitMono or greater.
Return values
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. |
Converts instance's stream format into a cached format. Class member m_pCoMemWaveFormatEx will be NULL if an error occurred.
HRESULT AssignFormat(
ISpStreamFormat *pStream
);
Parameters
- pStream
- [in] An ISpStreamFormat object.
Return values
Value |
Description |
S_OK |
Function completed successfully. |
E_POINTER |
Either class member m_guidFormatId or m_pCoMemWaveFormatEx is invalid or bad. |
Converts instance's stream format into the specified wave format. Class member m_guidFormatId will be GUID_NULL if an error occurred.
HRESULT AssignFormat(
const WAVEFORMATEX *pWaveFormatEx
);
Parameters
- pWaveFormatEx
- [in] Address of the WAVEFORMATEX structure containing the wave file format information.
Return values
Value |
Description |
S_OK |
Function completed successfully. |
E_OUTOFMEMORY |
Exceeded available memory. |
Assigns the instance's format according to a reference GUID and a wave format.
HRESULT AssignFormat(
REFGUID rguidFormatId,
const WAVEFORMATEX *pWaveFormatEx
);
Parameters
- rguidFormatId
- [in] The reference ID. If specified as SPDFID_WaveFormatEx, pWaveFormatEx is a WAVEFORMATEX data structure. Otherwise this is set to GUID_NULL.
- pWaveFormatEx
- [in] If rguidFormatId is not set to SPDFID_WaveFormatEx, this is passed back as NULL.
Return values
Value |
Description |
S_OK |
Function completed successfully. |
E_INVALIDARG |
pWaveFormatEx is invalid or bad. |
E_OUTOFMEMORY |
Exceeded available memory. |
Assigns (or copies) the instance's stream to a specific stream.
HRESULT AssignFormat(
const CSpStreamFormat & Src
);
Parameters
- Src
- [out] The stream to copy to.
Return values
Value |
Description |
S_OK |
Function completed successfully. |
E_OUTOFMEMORY |
Exceeded available memory. |
You are reading help file online using chmlib.com
|
If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com