TB2026-YDS Firmware
Loading...
Searching...
No Matches
decoder_format_t Struct Reference

PCM format of the open stream, read once after decoder_open(). More...

#include <decoder.h>

Data Fields

uint32_t rate_hz
uint8_t channels
uint8_t bits
uint32_t duration_ms

Detailed Description

PCM format of the open stream, read once after decoder_open().

Field Documentation

◆ bits

uint8_t decoder_format_t::bits

Source bits per sample: 16 (MP3, 16-bit WAV) or 24 (24-bit WAV). Output samples are always 32-bit MSB-justified words.

◆ channels

uint8_t decoder_format_t::channels

Always 2: mono sources are up-mixed to stereo.

◆ duration_ms

uint32_t decoder_format_t::duration_ms

Track length in ms; 0 if unknown (e.g. headerless VBR MP3).

◆ rate_hz

uint32_t decoder_format_t::rate_hz

Sample rate in Hz (e.g. 44100, up to 192000 for WAV).


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