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] | 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. |
- Return values
-
0 | Success. |
-EINVAL | Invalid filename or streamer_idx. |
-EAGAIN | No stream slot is available. |
-EFAULT | Module has not been initialized. |