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_idx | Index of the streamer to get the next frame from. |
[out] | frame_buffer | Pointer to the buffer holding the next frame. |
- Return values
-
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. |