|
esp32-audio-player 0.1.0
Audio player engine for ESP32
|
Backend interface (for implementers of src/decoders/*.c). More...
#include <decoder.h>
Data Fields | |
| codec_id_t | id |
| bool(* | probe )(const uint8_t *head, size_t head_len, const char *ext) |
| Return true if the first bytes look like this format. ext may be "". | |
| void *(* | open )(core_stream_t *s, decoder_info_t *info, int *err) |
| Parse headers, fill info, return backend state or NULL. | |
| int32_t(* | read )(void *state, int32_t *out, uint32_t max_frames) |
| int(* | seek )(void *state, uint64_t frame) |
| void(* | close )(void *state) |
| must NOT close the stream (the frontend does) | |
Backend interface (for implementers of src/decoders/*.c).
| void(* decoder_backend_t::close) (void *state) |
must NOT close the stream (the frontend does)
| codec_id_t decoder_backend_t::id |
| void *(* decoder_backend_t::open) (core_stream_t *s, decoder_info_t *info, int *err) |
Parse headers, fill info, return backend state or NULL.
| bool(* decoder_backend_t::probe) (const uint8_t *head, size_t head_len, const char *ext) |
Return true if the first bytes look like this format. ext may be "".
| int32_t(* decoder_backend_t::read) (void *state, int32_t *out, uint32_t max_frames) |
| int(* decoder_backend_t::seek) (void *state, uint64_t frame) |