|
esp32-audio-player 0.1.0
Audio player engine for ESP32
|
#include <i2s_sink.h>
Data Fields | |
| int | port |
| I2S controller number (0 or 1) | |
| int | bck_gpio |
| bit clock (BCK, SCK on some boards) | |
| int | ws_gpio |
| word select (LRCK, LCK) | |
| int | dout_gpio |
| data to the DAC (DIN) | |
| int | mclk_gpio |
| master clock to the DAC, -1 when the DAC derives it from BCK | |
| uint16_t | mclk_multiple |
| MCLK / sample rate; 0 = 256 (128 above 96 kHz) | |
| int | mute_gpio |
| DAC soft-mute input (PCM5102A XSMT), -1 = none. | |
| uint8_t | mute_active_level |
| level of mute_gpio while muted (PCM5102A XSMT: 0) | |
| int | amp_enable_gpio |
| amplifier enable, high while the output is open, -1 = none | |
| uint32_t | max_sample_rate |
| highest rate the DAC takes, 0 = 192000 | |
| bool | accept_dop |
| pass DoP (DSD) frames to the DAC | |
| uint16_t | fifo_ms |
| FIFO in front of the DMA at the highest rate, 0 = 200. | |
| int8_t | feeder_core |
| core of the feeder task, -1 = any | |
| uint8_t | feeder_priority |
| FreeRTOS priority, above the audio task. | |
| const char * | dac_name |
| shown by describe(), NULL = "I2S" | |
| bool audio_i2s_config_t::accept_dop |
pass DoP (DSD) frames to the DAC
| int audio_i2s_config_t::amp_enable_gpio |
amplifier enable, high while the output is open, -1 = none
| int audio_i2s_config_t::bck_gpio |
bit clock (BCK, SCK on some boards)
| const char* audio_i2s_config_t::dac_name |
shown by describe(), NULL = "I2S"
| int audio_i2s_config_t::dout_gpio |
data to the DAC (DIN)
| int8_t audio_i2s_config_t::feeder_core |
core of the feeder task, -1 = any
| uint8_t audio_i2s_config_t::feeder_priority |
FreeRTOS priority, above the audio task.
| uint16_t audio_i2s_config_t::fifo_ms |
FIFO in front of the DMA at the highest rate, 0 = 200.
| uint32_t audio_i2s_config_t::max_sample_rate |
highest rate the DAC takes, 0 = 192000
| int audio_i2s_config_t::mclk_gpio |
master clock to the DAC, -1 when the DAC derives it from BCK
| uint16_t audio_i2s_config_t::mclk_multiple |
MCLK / sample rate; 0 = 256 (128 above 96 kHz)
| uint8_t audio_i2s_config_t::mute_active_level |
level of mute_gpio while muted (PCM5102A XSMT: 0)
| int audio_i2s_config_t::mute_gpio |
DAC soft-mute input (PCM5102A XSMT), -1 = none.
| int audio_i2s_config_t::port |
I2S controller number (0 or 1)
| int audio_i2s_config_t::ws_gpio |
word select (LRCK, LCK)