#include <bluetooth/a2dpoptimisation.h>
class RA2dpOptimiser |
Public Member Enumerations | |
---|---|
enum | TA2dpOptimiserFunctionIds { EHCIA2dpOptimiseAcl, EHCIA2dpRemoveAclOptimisation } |
enum | TA2dpOptimiserUtilsPanic { EApiUsedWhenHandleIsNotOpen, EHandleIsAlreadyOpen } |
Public Member Functions | |
---|---|
RA2dpOptimiser() | |
IMPORT_C void | Close() |
IMPORT_C TInt | Open() |
IMPORT_C void | OptimiseAclForAudioStreaming(const TBTDevAddr &, TUint, TUint) |
IMPORT_C void | RemoveAclOptimisation(const TBTDevAddr &) |
API used for optimisation related to A2DP streaming
IMPORT_C void | Close | ( | ) |
Closes the handle to the A2DP Optimisation interface.
Note that it is safe to call this multiple times.
IMPORT_C TInt | Open | ( | ) |
Opens the handle to the A2DP Optimisation interface.
Returns: KErrNone if successful, otherwise a standard Symbian error code
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.
Parameter | Description |
---|---|
aDevAddr | Address of the remote device recieving audio stream |
aPeakBandwidth | Peak Bandwidth of audio stream in octets per second |
aAccessLatency | Access Latency of audio stream in microseconds |
IMPORT_C void | RemoveAclOptimisation | ( | const TBTDevAddr & | aDevAddr | ) |
Attempt to remove any A2DP optimisation that was previously set using OptimiseAclForAudioStreaming().
Parameter | Description |
---|---|
aDevAddr | Address of the remote device recieving audio stream |