nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ le_audio_bitrate_get()

int le_audio_bitrate_get ( const struct bt_audio_codec_cfg *const  codec,
uint32_t *  bitrate 
)

Get the bitrate for the codec configuration.

Decodes the audio frame duration and the number of octets per fram from the codec configuration, and calculates the bitrate.

Parameters
[in]codecPointer to the audio codec structure.
[out]bitratePointer to the bitrate in bps.