Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DetachTo (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3


CSpStreamFormat::DetachTo copies the instance's stream and frees (or detaches) the instance's stream. The instance's stream is set to NULL and the format ID is set to zero.

Copies the instance's stream to another existing stream.

void DetachTo(
   CSpStreamFormat   &Other;


The existing stream to copy to. The stream is freed using CoTaskMemFree() first and the instance is then copied to it.

Makes a copy of the instance's stream with the specified format ID and wave format.

void DetachTo(
   GUID            *pFormatId,
   WAVEFORMATEX   **ppCoMemWaveFormatEx


The new format ID based on the class member m_guidFormatId.
The new wave format based on the class member m_pCoMemWaveFormatEx.

Return values

Neither method returns a value.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.