Share via


Note

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

Microsoft Speech Platform

CSpEvent::GetFrom

CSpEvent::GetFrom clears the current instance and retrieves the next event from the event queue.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetFrom(</strong> <strong>ISpEventSource</strong> *<em>pEventSrc</em> <strong>)</strong></pre>

Parameters

  • pEventSrc
    The event object from which to get the next event.

Return Values

Value Description
S_OK Function completed successfully and all requested events were returned.
S_FALSE Success, but less than the requested amount of events were returned.
E_POINTER pEventArray is invalid.
FAILED(hr) Appropriate error message.