#include <applications/nrf_audio/src/bluetooth/bt_stream/bt_le_audio_tx/bt_le_audio_tx.h>
Allocates buffers and sends data to the controller.
- Note
- Send all available channels in a single call. Do not call this for each channel.
- Parameters
-
| [in] | ctx | Pointer to TX context. |
| [in] | audio_frame | Pointer to the encoded audio data. |
| [in] | tx | Pointer to an array of le_audio_tx_info elements. |
| [in] | num_tx | Number of elements in tx. |
- Return values
-
| 0 | Success. |
| -EINVAL | Invalid arguments or invalid audio/frame/stream configuration. |
| -ECANCELED | Current call is intentionally flushed due to previous late timing. |
| -ETIMEDOUT | Controller timestamp indicates late delivery (empty packet(s) on air). |
| -EIO | No stream was sent successfully. |
- Returns
- Other negative error codes may be propagated from timestamp/HCI operations.