Partager via


ISpStream::Close (SAPI 5.3)

Microsoft Speech API 5.3

ISpStream::Close

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

  
    HRESULT  Close  ( void );

Parameters

None.

Return values

Value
S_OK
SPERR_STREAM_CLOSED
FAILED (hr)

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.