|
esp32-audio-player 0.1.0
Audio player engine for ESP32
|
#include <stream.h>
Data Fields | |
| int32_t(* | read )(void *ctx, void *buf, size_t len) |
| Read up to len bytes. Returns bytes read (0 at EOF) or a negative core_err_t. | |
| int(* | seek )(void *ctx, int64_t offset, int whence) |
| whence: 0 = SEEK_SET, 1 = SEEK_CUR, 2 = SEEK_END. Returns CORE_OK or error. | |
| int64_t(* | tell )(void *ctx) |
| int64_t(* | size )(void *ctx) |
| total size in bytes, -1 if unknown | |
| void(* | close )(void *ctx) |
| releases ctx | |
| void(* core_stream_ops_t::close) (void *ctx) |
releases ctx
| int32_t(* core_stream_ops_t::read) (void *ctx, void *buf, size_t len) |
Read up to len bytes. Returns bytes read (0 at EOF) or a negative core_err_t.
| int(* core_stream_ops_t::seek) (void *ctx, int64_t offset, int whence) |
whence: 0 = SEEK_SET, 1 = SEEK_CUR, 2 = SEEK_END. Returns CORE_OK or error.
| int64_t(* core_stream_ops_t::size) (void *ctx) |
total size in bytes, -1 if unknown
| int64_t(* core_stream_ops_t::tell) (void *ctx) |