Export (0) Print
Expand All

ISpMMSysAudio::GetMMHandle (SAPI 5.4)

Speech API 5.4
Microsoft Speech API 5.4

ISpMMSysAudio::GetMMHandle

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

HRESULT GetMMHandle(
   void   **pHandle
);

Parameters

pHandle
The wave in or wave out device handle.

Return values

ValueDescription
S_OKFunction completed successfully.
E_POINTERpHandle is invalid.
SPERR_UNINITIALIZEDAudio 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.

Show:
© 2014 Microsoft