TB2026-YDS Firmware
Loading...
Searching...
No Matches
decoder_backend.h File Reference

Internal contract between the decoder facade (decoder.c) and a format backend. More...

#include "decoder.h"
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  decoder_backend_t
 One format backend (MP3 or WAV). Single-stream: one open at a time. More...

Variables

const decoder_backend_t decoder_mp3_backend
const decoder_backend_t decoder_wav_backend

Detailed Description

Internal contract between the decoder facade (decoder.c) and a format backend.

Not a public header: only decoder.c and the per-format backends include it. The facade owns the FILE* (it opens it, sniffs the format, and closes it); a backend keeps its own decoder state and reads PCM from the file handed to open().

Note
Développé avec l'assistance de Claude Opus 4.8 (Anthropic), sous la direction de Y. Dos Santos : spécification, revue et validation sur cible par l'auteur.

Variable Documentation

◆ decoder_mp3_backend

const decoder_backend_t decoder_mp3_backend
extern

◆ decoder_wav_backend

const decoder_backend_t decoder_wav_backend
extern