Browse
 
Tools
Rss Categories

LVSpeechPort::StreamCancel

Reference Number: AA-00815 Views: 7404 0 Rating/ Voters

Cancels the stream and discards any sound data.

Function

  • int StreamCancel(void)

Parameters

None.

Return Values

LV_SUCCESS

No errors - stream destroyed successfully.

LV_FAILURE

The operation failed becasue the port was shutting down.

LV_INVALID_PORT

The port is not valid (either CreateClient has not been called or DestroyClient has been called prior to this call).

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

Cancels the stream. Used in case a WaitForDecode function is not terminating or if end of speech has not been detected. This readies the port to start a new stream, if StreamStart is called.

See Also