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

◆ srv_store_pres_dly_find()

int srv_store_pres_dly_find ( struct bt_bap_stream * stream,
uint32_t * computed_pres_dly_us,
uint32_t * existing_pres_dly_us,
struct bt_bap_qos_cfg_pref const * server_qos_pref,
bool * group_reconfig_needed,
struct bt_cap_unicast_group * unicast_group )

#include <applications/nrf_audio/src/bluetooth/bt_stream/unicast/server_store.h>

Search for a common presentation delay across all server Audio Stream Endpoints (ASEs) in a given unicast_group for the given direction.

This function will try to satisfy the preferred presentation delay for all ASEs. If that is not possible, it will try to satisfy the max and min values.

Note
srv_store_lock() must be called before accessing this function.
Parameters
[in]streamPointer to a new stream to be started
[out]computed_pres_dly_usPointer to store the computed presentation delay in microseconds.
[out]existing_pres_dly_usPointer to store the existing presentation delay in microseconds.
[in]server_qos_prefPointer to the preferred QoS configuration.
[out]group_reconfig_neededTrue if a group reconfiguration is needed.
[in]unicast_groupPointer to the unicast group to search within.
Return values
0Success, negative error code on failure.
-ESPIPEThere is no common presentation delay found.
-EINVALIllegal argument(s), or submitted streams are in different groups.