Share via


ISpAudio::SetBufferInfo (Windows Embedded CE 6.0)

1/6/2010

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.

Syntax

HRESULT SetBufferInfo(
  const SPAUDIOBUFFERINFO* pBuffInfo
);

Parameters

  • pBuffInfo
    [in] Pointer to the SPAUDIOBUFFERINFO buffer providing the requested settings and member restrictions.

Return Value

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

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpAudio
SAPI Interfaces