5 #include "../i2s_audio.h" 7 #include <driver/i2s.h> 8 #include <freertos/FreeRTOS.h> 9 #include <freertos/queue.h> 19 static const size_t BUFFER_SIZE = 1024;
38 uint8_t data[BUFFER_SIZE];
45 void setup()
override;
49 #if SOC_I2S_SUPPORTS_DAC 54 void start()
override;
57 size_t play(
const uint8_t *data,
size_t length)
override;
59 bool has_buffered_data()
const override;
66 static void player_task(
void *params);
68 TaskHandle_t player_task_handle_{
nullptr};
74 #if SOC_I2S_SUPPORTS_DAC 75 i2s_dac_mode_t internal_dac_mode_{I2S_DAC_CHANNEL_DISABLE};
uint8_t external_dac_channels_
const float LATE
For components that should be initialized at the very end of the setup process.
QueueHandle_t buffer_queue_
BedjetMode mode
BedJet operating mode.
QueueHandle_t event_queue_
float get_setup_priority() const override
void set_dout_pin(uint8_t pin)
void set_external_dac_channels(uint8_t channels)
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
void set_internal_dac_mode(i2s_dac_mode_t mode)