![]() |
nRF Connect SDK API 3.3.99
|
| int lc3_streamer_stream_register | ( | const char *const | filename, |
| uint8_t *const | streamer_idx, | ||
| const bool | loop ) |
#include <applications/nrf_audio/src/modules/lc3_streamer.h>
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.
| [in] | filename | Name of the file to open. |
| [out] | streamer_idx | Index of the streamer that was registered. |
| [in] | loop | If true, the stream will be looped when it reaches the end. |
| 0 | Success. |
| -EINVAL | Invalid filename or streamer_idx. |
| -EAGAIN | No stream slot is available. |
| -EFAULT | Module has not been initialized. |