![]() |
nRF Connect SDK API 3.3.99
|
| int lc3_streamer_next_frame_get | ( | const uint8_t | streamer_idx, |
| const uint8_t **const | frame_buffer ) |
#include <applications/nrf_audio/src/modules/lc3_streamer.h>
Get the next frame for the stream.
Populates a pointer to the buffer holding the next frame. This buffer is valid until the next call to this function. or stream is closed.
| [in] | streamer_idx | Index of the streamer to get the next frame from. |
| [out] | frame_buffer | Pointer to the buffer holding the next frame. |
| 0 | Success. |
| -EINVAL | Invalid streamer index. |
| -ENODATA | No more frames to read, call lc3_streamer_end_stream to clean context. |
| -EFAULT | Module has not been initialized, or stream is not in a valid state. If stream has been playing an error has occurred preventing from further streaming. Call lc3_streamer_end_stream to clean context. |