|
TB2026-YDS Firmware
|
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 |
PCM format of the open stream, read once after decoder_open().
| 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.
| uint8_t decoder_format_t::channels |
Always 2: mono sources are up-mixed to stereo.
| uint32_t decoder_format_t::duration_ms |
Track length in ms; 0 if unknown (e.g. headerless VBR MP3).
| uint32_t decoder_format_t::rate_hz |
Sample rate in Hz (e.g. 44100, up to 192000 for WAV).