Package: android.hardware.bluetooth.a2dp@1.0

types

Properties

Status

enum Status: uint8_t
Details
Members
SUCCESS
FAILURE
UNSUPPORTED_CODEC_CONFIGURATION
codec configuration not supported by the audio platform
PENDING
operation is pending

CodecType

enum CodecType: uint32_t
Details
Members
UNKNOWN = 0x00
SBC = 0x01
AAC = 0x02
APTX = 0x04
APTX_HD = 0x08
LDAC = 0x10

SampleRate

enum SampleRate: uint32_t
Details
Members
RATE_UNKNOWN = 0x00
RATE_44100 = 0x01
RATE_48000 = 0x02
RATE_88200 = 0x04
RATE_96000 = 0x08
RATE_176400 = 0x10
RATE_192000 = 0x20

BitsPerSample

enum BitsPerSample: uint8_t
Details
Members
BITS_UNKNOWN = 0x00
BITS_16 = 0x01
BITS_24 = 0x02
BITS_32 = 0x04

ChannelMode

enum ChannelMode: uint8_t
Details
Members
UNKNOWN = 0x00
MONO = 0x01
STEREO = 0x02

CodecConfiguration

struct CodecConfiguration {CodecType codecType; SampleRate sampleRate; BitsPerSample bitsPerSample; ChannelMode channelMode; uint32_t encodedAudioBitrate; uint16_t peerMtu; union CodecSpecific codecSpecific}
Details
Members
codecType
Bluetooth A2DP codec
sampleRate
Sampling rate for encoder
bitsPerSample
Bits per sample for encoder
channelMode
Channel mode for encoder
encodedAudioBitrate
The encoded audio bitrate in bits / second.0x00000000 - The audio bitrate is not specified / unused 0x00000001 - 0x00FFFFFF - Encoded audio bitrate in bits/second 0x01000000 - 0xFFFFFFFF - Reserved
peerMtu
Peer MTU(in octets )
codecSpecific