ISpAudio::SetBufferInfo (SAPI 5.4)
Microsoft Speech API 5.4
ISpAudio::SetBufferInfo
ISpAudio::SetBufferInfo sets the audio stream buffer information.
HRESULT SetBufferInfo(
const SPAUDIOBUFFERINFO *pBuffInfo
);
Parameters
- pBuffInfo
[in] Pointer to the SPAUDIOBUFFERINFO buffer providing the requested settings.
Return values
Value |
S_OK |
SPERR_UNINITIALIZED |
E_INVALIDARG |
SPERR_DEVICE_BUSY |
FAILED(hr) |
Remarks
This method can be called only when the audio device is in the SPAS_CLOSED state. The SPAUDIOBUFFERINFO members must conform to the following restrictions:
SPAudioBufferInfo.ulMsMinNotification cannot be larger than one quarter the size of SPAudioBufferInfo.ulMsBufferSize and must not be zero. |
SPAudioBufferInfo.ulMsEventBias cannot be larger than SPAudioBufferInfo.ulMsBufferSize. |
SPAudioBufferInfo.ulMsBufferSize must be greater than or equal to 200 milliseconds. |