Skip to content

# Struct bluespy_audio_codec_info

ClassList > bluespy_audio_codec_info

Describes the codec configuration for a given audio stream. More...

- `#include <bluespy.h>`

## Public Attributes

Type | Name
--- | ---
const void * | config
uint32_t | config_len
bluespy_codec_container | container

## Detailed Description

The configuration data pointed to by config points to container-specific payloads as obtained from signalling. The meaning depends on container:

- BLUESPY_CODEC_AVDTP: config points to a full AVDTP_Service_Capabilities_Media_Codec_t structure (including its entire Media_Codec_Specific_Information block).
- BLUESPY_CODEC_CIS: config points to the Codec_Specific_Configuration part of the ASE Control Point (typically from a Set Configuration command).
- BLUESPY_CODEC_BIS: config points to the ACAD + AdvData fields of the Extended Advertising PDU payload. ACAD (Additional Controller Advertising Data) includes the BIG Info block. AdvData (Advertising Data) includes the BASE block.

In all cases, config_len bytes are valid.

Note:

Pointers are transient: valid only during the new_codec_stream() call. Implementations must copy data they need.

## Public Attributes Documentation

### variable config

    const void* bluespy_audio_codec_info::config;

### variable config_len

    uint32_t bluespy_audio_codec_info::config_len;

### variable container

    bluespy_codec_container bluespy_audio_codec_info::container;

The documentation for this class was generated from the following file `bluespy.h`