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

◆ srv_store_preset_validated()

bool srv_store_preset_validated ( struct bt_audio_codec_cfg const *const new,
struct bt_audio_codec_cfg const *const existing,
uint8_t pref_sample_rate_value )

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

Validate the codec configuration preset.

Note
srv_store_lock() must be called before accessing this function.
Parameters
[in]newPointer to the new codec configuration.
[in]existingPointer to the existing codec configuration.
[in]pref_sample_rate_valuePreferred sample rate value.
Return values
trueThe new preset should overwrite the existing one.
falseOtherwise.