|
esp32-audio-player 0.1.0
Audio player engine for ESP32
|
I2S DAC output for the player (ESP-IDF i2s_std driver, master, Philips format, 32-bit slots). More...
#include "audio_player/sink.h"

Go to the source code of this file.
Data Structures | |
| struct | audio_i2s_config_t |
Macros | |
| #define | AUDIO_I2S_CONFIG_DEFAULT() |
Functions | |
| audio_sink_t * | audio_i2s_sink_create (const audio_i2s_config_t *cfg) |
| Create the sink. | |
| void | audio_i2s_sink_destroy (audio_sink_t *sink) |
| Stops the feeder task and frees the sink. | |
I2S DAC output for the player (ESP-IDF i2s_std driver, master, Philips format, 32-bit slots).
Works with DACs that take plain I2S without a control bus: PCM5100/5101/5102A, PCM5122 in hardware mode, UDA1334A, ES9023, CS4344 (with MCLK), MAX98357A and similar.
| #define AUDIO_I2S_CONFIG_DEFAULT | ( | ) |
| audio_sink_t * audio_i2s_sink_create | ( | const audio_i2s_config_t * | cfg | ) |
Create the sink.
The I2S channel is allocated at the first open() and released by close(). NULL when the pins are not set or memory runs out.
| void audio_i2s_sink_destroy | ( | audio_sink_t * | sink | ) |
Stops the feeder task and frees the sink.
Call only after the player released it (player_cmd_set_sink() to another sink, or audio_player_stop()).