ISpAudio::SetBufferNotifySize (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpAudio::SetBufferNotifySize

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

HRESULT SetBufferNotifySize(
   ULONG   cbSize
);

Parameters

cbSize
[in] The size, specified in bytes, of the information associated with the audio stream buffer.

Return values

ValueDescription
S_OKFunction completed successfully.
FAILED(hr)Appropriate error message.

Remarks

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

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

Show: