Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

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.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetBufferNotifySize(</strong> <strong> ULONG</strong> *<em>pcbSize</em> <strong>);</strong> </pre>

Parameters

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

Return Values

Value Description
S_OK Function completed successfully.
E_POINTER Invalid 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.