Cancels the stream and discards any sound data.
Function
- int LV_SRE_StreamCancel(HPORT hport)
Parameters
hport
The port's handle.
Return Values
LV_SUCCESS
No errors - stream destroyed successfully.
LV_FAILURE
The operation failed because the port was shutting down.
LV_INVALID_HPORT
The input hport is not a valid one.
LV_EXCEPTION
An exception occurred while processing the request.
Remarks
Cancels the stream. Used in case a LV_SRE_WaitForDecode function is not terminating or if end of speech has not been detected. This readies the port to start a new stream, if LV_SRE_StreamStart is called. Differs from LV_SRE_StreamStop, which does not discard data.
See Also