TB2026-YDS Firmware
Loading...
Searching...
No Matches
decoder_wav.c File Reference

WAV backend: PCM RIFF/WAVE, 16-bit or 24-bit, mono or stereo, up to 192 kHz. More...

#include "decoder_backend.h"
#include "esp_log.h"
#include <stdlib.h>
#include <string.h>

Variables

const decoder_backend_t decoder_wav_backend

Detailed Description

WAV backend: PCM RIFF/WAVE, 16-bit or 24-bit, mono or stereo, up to 192 kHz.

Every sample is expanded to the 32-bit MSB-justified word the ESP32 I2S peripheral expects: int16 shifted into the high 16 bits, WAV's packed 3-byte little-endian 24-bit samples into the high 24 bits (low byte 0). Mono is up-mixed to stereo.

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_wav_backend

const decoder_backend_t decoder_wav_backend
Initial value:
= {
.open = wav_open,
.read = wav_read,
.close = wav_close,
}