RA2dpOptimiser Class Reference

class RA2dpOptimiser

API used for optimisation related to A2DP streaming

Constructor & Destructor Documentation

RA2dpOptimiser()

IMPORT_C RA2dpOptimiser ( )

RA2dpOptimiser(const RA2dpOptimiser &)

RA2dpOptimiser ( const RA2dpOptimiser & ) [private]

Parameters

const RA2dpOptimiser &

Member Functions Documentation

Close()

IMPORT_C void Close ( )

Closes the handle to the A2DP Optimisation interface.

Note that it is safe to call this multiple times.

Open()

IMPORT_C TInt Open ( )

Opens the handle to the A2DP Optimisation interface.

OptimiseAclForAudioStreaming(const TBTDevAddr &, TUint, TUint)

IMPORT_C void OptimiseAclForAudioStreaming ( const TBTDevAddr & aDevAddr,
TUint aPeakBandwidth,
TUint aAccessLatency
)

Attempt to optimise the ACL for A2DP streaming.

This method should return immediately without waiting for confirmation of optimisation from the hardware as it will be called directly before streaming is required. This method can also be called multiple times without having to remove the optimisation to allow for changing streaming parameters.

The Peak Bandwidth argument is for the octets of A2DP data only, i.e. the overhead of additional headers, L2CAP for example, should not be considered by the caller of this method.

Parameters

const TBTDevAddr & aDevAddr Address of the remote device recieving audio stream
TUint aPeakBandwidth Peak Bandwidth of audio stream in octets per second
TUint aAccessLatency Access Latency of audio stream in microseconds

RemoveAclOptimisation(const TBTDevAddr &)

IMPORT_C void RemoveAclOptimisation ( const TBTDevAddr & aDevAddr )

Attempt to remove any A2DP optimisation that was previously set using OptimiseAclForAudioStreaming() .

Parameters

const TBTDevAddr & aDevAddr Address of the remote device recieving audio stream

Member Enumerations Documentation

Enum TA2dpOptimiserFunctionIds

Enumerators

EHCIA2dpOptimiseAcl = 0
EHCIA2dpRemoveAclOptimisation = 1

Enum TA2dpOptimiserUtilsPanic

Enumerators

EApiUsedWhenHandleIsNotOpen = 0
EHandleIsAlreadyOpen = 1

Member Data Documentation

RHCIServerSession * iHCIServerSession

RHCIServerSession * iHCIServerSession [private]

TUint32 iReserved1

TUint32 iReserved1 [private]