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

◆ lc3_streamer_next_frame_get()

int lc3_streamer_next_frame_get ( const uint8_t streamer_idx,
const uint8_t **const frame_buffer )

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.

Parameters
[in]streamer_idxIndex of the streamer to get the next frame from.
[out]frame_bufferPointer to the buffer holding the next frame.
Return values
0Success.
-EINVALInvalid streamer index.
-ENODATANo more frames to read, call lc3_streamer_end_stream to clean context.
-EFAULTModule 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.