ISpAudio::GetBufferNotifySize (SAPI 5.4)

Speech API 5.4
Microsoft Speech API 5.4

ISpAudio::GetBufferNotifySize

ISpAudio::GetBufferNotifySize retrieves the audio stream buffer size information. This information is used to determine when the event returned by ISpAudio::EventHandle is set or reset.

HRESULT GetBufferNotifySize(
   ULONG   *pcbSize
);

Parameters

pcbSize
[out] Address of the size information, specified in bytes, that is associated with the audio stream buffer.

Return values

ValueDescription
S_OKFunction completed successfully.
E_POINTERInvalid pointer.

Remarks

For read streams, the event is set if the audio buffered is greater than or equal to the value set in pcbSize, otherwise the event information is reset.

For write streams, the event is set if the audio buffered is less than the value set in pcbSize, otherwise the event information is reset.

Show: