Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method sets the audio stream buffer information. The client should call the method only when the audio device is in the SPAS_CLOSED state.
HRESULT SetBufferInfo(const SPAUDIOBUFFERINFO* pBuffInfo);
Parameters
- pBuffInfo
[in] Pointer to the SPAUDIOBUFFERINFO buffer providing the requested settings and member restrictions.
Return Values
The following table shows the possible return values.
Value | Description |
---|---|
S_OK | Function completed successfully. |
SPERR_UNINITIALIZED | Audio stream not initialized. |
E_INVALIDARG | pBuffInfo is invalid or the parameters do not meet the previous criteria. |
SPERR_DEVICE_BUSY | Audio device is not in the SPAS_CLOSED state. |
FAILED(hr) | Appropriate error message. |
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.
Link Library: Sapilib.lib.
See Also
Send Feedback on this topic to the authors