Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

CSpStreamFormat::DetachTo

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.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>void DetachTo(</strong> <strong>CSpStreamFormat</strong> <em></em>&amp;Other; <strong>);</strong></pre>

Parameters

  • 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.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>void DetachTo(</strong> <strong>GUID</strong> *<em>pFormatId</em>, <strong>WAVEFORMATEX</strong> **<em>ppCoMemWaveFormatEx</em> <strong>)</strong></pre>

Parameters

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

Return Values