![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| [in] | stream | Pointer to a new stream to be started |
| [out] | computed_pres_dly_us | Pointer to store the computed presentation delay in microseconds. |
| [out] | existing_pres_dly_us | Pointer to store the existing presentation delay in microseconds. |
| [in] | server_qos_pref | Pointer to the preferred QoS configuration. |
| [out] | group_reconfig_needed | True if a group reconfiguration is needed. |
| [in] | unicast_group | Pointer to the unicast group to search within. |
| 0 | Success, negative error code on failure. |
| -ESPIPE | There is no common presentation delay found. |
| -EINVAL | Illegal argument(s), or submitted streams are in different groups. |