Compartilhar via


ISpAudio::SetBufferInfo (Windows CE 5.0)

Send Feedback

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

ISpAudio | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.