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

◆ unicast_server_config_get()

int unicast_server_config_get ( struct bt_conn *  conn,
enum bt_audio_dir  dir,
uint32_t *  bitrate,
uint32_t *  sampling_rate_hz,
uint32_t *  pres_delay_us 
)

Get configuration for audio stream.

Parameters
[in]connPointer to the connection to get the configuration for.
[in]dirDirection to get the configuration from.
[out]bitratePointer to the bit rate used; can be NULL.
[out]sampling_rate_hzPointer to the sampling rate used; can be NULL.
[out]pres_delay_usPointer to the presentation delay used; can be NULL. Only valid for the sink direction.
Return values
0Operation successful.
-ENXIOThe feature is disabled.