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

◆ lc3_streamer_stream_register()

int lc3_streamer_stream_register ( const char *const filename,
uint8_t *const streamer_idx,
const bool loop )

Register a new stream that will be played by the LC3 streamer.

Opens the specified file on the SD card, and prepares data so the stream can be started. When a frame is read by the application the next frame will be read from the file to ensure it's ready for streaming when needed.

Parameters
[in]filenameName of the file to open.
[out]streamer_idxIndex of the streamer that was registered.
[in]loopIf true, the stream will be looped when it reaches the end.
Return values
0Success.
-EINVALInvalid filename or streamer_idx.
-EAGAINNo stream slot is available.
-EFAULTModule has not been initialized.