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

#include <player.h>

Data Fields

audio_sink_t * sink
 may be NULL at start; set later with player_set_sink
 
library_t * library
 optional: faster metadata and RG from the index
 
core_stream_t *(* open_stream )(const char *path, void *user)
 Open a stream for a path (platform: readahead buffer in PSRAM). NULL = file stream.
 
void * open_stream_user
 
const char * state_dir
 resume state, queue.m3u8, .scrobbler.log live here
 
bool scrobble_log
 write Rockbox-format .scrobbler.log
 
float volume_default_db
 
float volume_max_db
 
float volume_step_db
 default 1.0
 
void(* wake )(void *user)
 Optional: called (from the commanding thread, outside any player lock) after each player_cmd_*, so an idle audio task can block on a semaphore instead of polling.
 
void * wake_user
 

Field Documentation

◆ library

library_t* player_config_t::library

optional: faster metadata and RG from the index

◆ open_stream

core_stream_t *(* player_config_t::open_stream) (const char *path, void *user)

Open a stream for a path (platform: readahead buffer in PSRAM). NULL = file stream.

◆ open_stream_user

void* player_config_t::open_stream_user

◆ scrobble_log

bool player_config_t::scrobble_log

write Rockbox-format .scrobbler.log

◆ sink

audio_sink_t* player_config_t::sink

may be NULL at start; set later with player_set_sink

◆ state_dir

const char* player_config_t::state_dir

resume state, queue.m3u8, .scrobbler.log live here

◆ volume_default_db

float player_config_t::volume_default_db

◆ volume_max_db

float player_config_t::volume_max_db

◆ volume_step_db

float player_config_t::volume_step_db

default 1.0

◆ wake

void(* player_config_t::wake) (void *user)

Optional: called (from the commanding thread, outside any player lock) after each player_cmd_*, so an idle audio task can block on a semaphore instead of polling.

◆ wake_user

void* player_config_t::wake_user

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