Share via


Note

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

Microsoft Speech Platform

ISpMMSysAudio::GetMMHandle

ISpMMSysAudio::GetMMHandle passes back a multimedia audio device stream handle.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetMMHandle(</strong> <strong> void</strong> **<em>pHandle</em> <strong>);</strong> </pre>

Parameters

  • pHandle
    The wave in or wave out device handle.

Return Values

Value Description
S_OK Function completed successfully.
E_POINTER pHandle is invalid.
SPERR_UNINITIALIZED Audio object is in the SPAS_CLOSED state.

Remarks

The audio object must not be in the SPAS_CLOSED state or this call will fail because the multimedia device will not have been opened yet. The caller must not close the passed back handle. The caller must not use the handle either after changing the state of the audio object to SPAS_CLOSED or after releasing the object.