RA2dpOptimiser Class Reference

#include <bluetooth/a2dpoptimisation.h>

Link against: a2dpoptimisation.lib

class RA2dpOptimiser

Detailed Description

API used for optimisation related to A2DP streaming

Member Enumeration Documentation

Enum TA2dpOptimiserFunctionIds

Enum TA2dpOptimiserUtilsPanic

Constructor & Destructor Documentation

RA2dpOptimiser ( )

IMPORT_CRA2dpOptimiser()

Member Function Documentation

Close ( )

IMPORT_C voidClose()

Closes the handle to the A2DP Optimisation interface.

Note that it is safe to call this multiple times.

Open ( )

IMPORT_C TIntOpen()

Opens the handle to the A2DP Optimisation interface.

Returns: KErrNone if successful, otherwise a standard Symbian error code

OptimiseAclForAudioStreaming ( const TBTDevAddr &, TUint, TUint )

IMPORT_C voidOptimiseAclForAudioStreaming(const TBTDevAddr &aDevAddr,
TUintaPeakBandwidth,
TUintaAccessLatency
)

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.

ParameterDescription
aDevAddrAddress of the remote device recieving audio stream
aPeakBandwidthPeak Bandwidth of audio stream in octets per second
aAccessLatencyAccess Latency of audio stream in microseconds

RemoveAclOptimisation ( const TBTDevAddr & )

IMPORT_C voidRemoveAclOptimisation(const TBTDevAddr &aDevAddr)

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

ParameterDescription
aDevAddrAddress of the remote device recieving audio stream