ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
esphome::audio_dac::AudioDac Class Referenceabstract

#include <audio_dac.h>

Inheritance diagram for esphome::audio_dac::AudioDac:
esphome::aic3204::AIC3204 esphome::es8156::ES8156 esphome::es8311::ES8311 esphome::es8388::ES8388 esphome::es9038q2m_katana::ES9038Q2MKatana esphome::pcm5122::PCM5122 esphome::tas2780::TAS2780 esphome::tas58xx::TAS58xx

Public Member Functions

virtual bool set_mute_off ()=0
 
virtual bool set_mute_on ()=0
 
virtual bool set_volume (float volume)=0
 
virtual bool is_muted ()=0
 
virtual float volume ()=0
 
virtual void on_audio_started ()
 Called from the main loop by the speaker driving this DAC once its audio clocks are running.
 

Protected Attributes

bool is_muted_ {false}
 

Detailed Description

Definition at line 8 of file audio_dac.h.

Member Function Documentation

◆ is_muted()

◆ on_audio_started()

virtual void esphome::audio_dac::AudioDac::on_audio_started ( )
inlinevirtual

Called from the main loop by the speaker driving this DAC once its audio clocks are running.

DACs that can only be configured while clocked (e.g. DSP state lost across clock stops) override this.

Reimplemented in esphome::tas58xx::TAS58xx.

Definition at line 19 of file audio_dac.h.

◆ set_mute_off()

◆ set_mute_on()

◆ set_volume()

◆ volume()

Field Documentation

◆ is_muted_

bool esphome::audio_dac::AudioDac::is_muted_ {false}
protected

Definition at line 22 of file audio_dac.h.


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