Cancels the stream and discards any sound data.
- int LV_SRE_StreamCancel(HPORT hport)
The port's handle.
No errors - stream destroyed successfully.
The operation failed because the port was shutting down.
The input hport is not a valid one.
An exception occurred while processing the request.
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.