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

◆ bt_le_audio_tx_stream_sent()

int bt_le_audio_tx_stream_sent ( struct bt_le_audio_tx_ctx * ctx,
struct stream_index stream_idx )

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

Releases one outstanding TX pool allocation for the provided stream.

Call this after TX completion notification for each stream that consumed one TX buffer. This keeps the module's per-stream pool accounting aligned with actual controller completions.

Parameters
[in]ctxPointer to TX context.
[in]stream_idxStream index.
Return values
0Success.
-EINVALctx is NULL or the module has not been initialized.
-ESPIPEstream_idx is out of bounds.