ISpSREngineSite::DataAvailable (Windows CE 5.0)

Send Feedback

This method gets the amount of data that can be read by the ISpSREngineSite::Read method without blocking. The DataAvailable method can only be called while the SR engine is inside an ISpSREngine::RecognizeStream call, although it can be called on any thread.

HRESULT DataAvailable(  ULONG* pcb);

Parameters

  • pcb
    [out] Pointer to the amount, in bytes, of data available. For real-time audio streams, this is the actual amount of data currently available. For non-real-time streams, this method always retrieves the value INFINITE. See Remarks section.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
E_POINTER pcb is a bad write pointer.
SPERR_STREAM_NOT_ACTIVE Method called when engine is not inside RecognizeStream call.
FAILED(hr) Appropriate error message.

Remarks

Engines can determine if a stream is a real-time stream from the fRealTimeAudio parameter on the ISpSREngine::RecognizeStream method.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.

See Also

ISpSREngineSite | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.