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

#include <player.h>

Collaboration diagram for player_status_t:

Data Fields

player_state_t state
 
uint32_t queue_index
 valid when queue_length > 0
 
uint32_t queue_length
 
char path [CORE_PATH_MAX]
 current track
 
char title [TAG_TEXT_MAX]
 falls back to the file name
 
char artist [TAG_TEXT_MAX]
 
char album [TAG_TEXT_MAX]
 
uint16_t year
 
uint16_t track_no
 
lib_id_t track_id
 
uint64_t cover_offset
 embedded cover in the file (0 = none)
 
uint32_t cover_size
 
uint32_t position_ms
 
uint32_t duration_ms
 0 if unknown
 
codec_id_t codec
 
uint32_t bitrate_kbps
 
audio_format_t src_fmt
 decoded format
 
audio_format_t out_fmt
 format sent to the sink
 
bool bitperfect
 samples reach the DAC unchanged (SINK_CAP_BITPERFECT sink, DSP bypass, no resample)
 
uint32_t dsp_flags
 DSP_FLAG_* incl. DSP_FLAG_RESAMPLE.
 
float volume_db
 current volume (hardware or software)
 
float volume_max_db
 user limit (hearing protection)
 
bool shuffle
 
repeat_mode_t repeat
 
uint32_t sleep_left_s
 0 = off
 
uint32_t underruns
 
char sink_name [16]
 
char sink_detail [48]
 

Field Documentation

◆ album

char player_status_t::album[TAG_TEXT_MAX]

◆ artist

char player_status_t::artist[TAG_TEXT_MAX]

◆ bitperfect

bool player_status_t::bitperfect

samples reach the DAC unchanged (SINK_CAP_BITPERFECT sink, DSP bypass, no resample)

◆ bitrate_kbps

uint32_t player_status_t::bitrate_kbps

◆ codec

codec_id_t player_status_t::codec

◆ cover_offset

uint64_t player_status_t::cover_offset

embedded cover in the file (0 = none)

◆ cover_size

uint32_t player_status_t::cover_size

◆ dsp_flags

uint32_t player_status_t::dsp_flags

DSP_FLAG_* incl. DSP_FLAG_RESAMPLE.

◆ duration_ms

uint32_t player_status_t::duration_ms

0 if unknown

◆ out_fmt

audio_format_t player_status_t::out_fmt

format sent to the sink

◆ path

char player_status_t::path[CORE_PATH_MAX]

current track

◆ position_ms

uint32_t player_status_t::position_ms

◆ queue_index

uint32_t player_status_t::queue_index

valid when queue_length > 0

◆ queue_length

uint32_t player_status_t::queue_length

◆ repeat

repeat_mode_t player_status_t::repeat

◆ shuffle

bool player_status_t::shuffle

◆ sink_detail

char player_status_t::sink_detail[48]

◆ sink_name

char player_status_t::sink_name[16]

◆ sleep_left_s

uint32_t player_status_t::sleep_left_s

0 = off

◆ src_fmt

audio_format_t player_status_t::src_fmt

decoded format

◆ state

player_state_t player_status_t::state

◆ title

char player_status_t::title[TAG_TEXT_MAX]

falls back to the file name

◆ track_id

lib_id_t player_status_t::track_id

◆ track_no

uint16_t player_status_t::track_no

◆ underruns

uint32_t player_status_t::underruns

◆ volume_db

float player_status_t::volume_db

current volume (hardware or software)

◆ volume_max_db

float player_status_t::volume_max_db

user limit (hearing protection)

◆ year

uint16_t player_status_t::year

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