esp32-audio-player 0.1.0
Audio player engine for ESP32
Loading...
Searching...
No Matches
decoder_backend_t Struct Reference

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)
 

Detailed Description

Backend interface (for implementers of src/decoders/*.c).

Field Documentation

◆ close

void(* decoder_backend_t::close) (void *state)

must NOT close the stream (the frontend does)

◆ id

codec_id_t decoder_backend_t::id

◆ open

void *(* decoder_backend_t::open) (core_stream_t *s, decoder_info_t *info, int *err)

Parse headers, fill info, return backend state or NULL.

◆ probe

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 "".

◆ read

int32_t(* decoder_backend_t::read) (void *state, int32_t *out, uint32_t max_frames)

◆ seek

int(* decoder_backend_t::seek) (void *state, uint64_t frame)

The documentation for this struct was generated from the following file: