8 #include <freertos/FreeRTOS.h> 31 virtual size_t play(
const uint8_t *data,
size_t length, TickType_t ticks_to_wait) {
38 return this->
play(data, length);
48 virtual size_t play(
const uint8_t *data,
size_t length) = 0;
50 size_t play(
const std::vector<uint8_t> &data) {
return this->
play(data.data(), data.size()); }
52 virtual void start() = 0;
53 virtual void stop() = 0;
virtual bool set_mute_off()=0
virtual bool set_mute_on()=0
virtual void set_volume(float volume)
virtual bool has_buffered_data() const =0
size_t play(const std::vector< uint8_t > &data)
void set_audio_stream_info(const audio::AudioStreamInfo &audio_stream_info)
void set_audio_dac(audio_dac::AudioDac *audio_dac)
virtual bool set_volume(float volume)=0
audio_dac::AudioDac * audio_dac_
Implementation of SPI Controller mode.
virtual size_t play(const uint8_t *data, size_t length, TickType_t ticks_to_wait)
Plays the provided audio data.
audio::AudioStreamInfo audio_stream_info_
virtual void set_mute_state(bool mute_state)