ISpStream::Close

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpStream::Close

ISpStream::Close closes the audio stream and validates the close operation.

HRESULT  Close  ( void );

Parameters

None.

Return values

Value Description
S_OK Function completed successfully.
SPERR_STREAM_CLOSED The stream is closed or unavailable.
FAILED (hr) Appropriate error message.

Remarks

Releasing the ISpStream object will automatically call this method. However, any errors encountered will not be sent as notifications to the application. Hence the application can explicitly call this method first to check that no errors occurred during the close operation.