ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
audio_dac.h
Go to the documentation of this file.
1#pragma once
2
4#include "esphome/core/hal.h"
5
7
8class AudioDac {
9 public:
10 virtual bool set_mute_off() = 0;
11 virtual bool set_mute_on() = 0;
12 virtual bool set_volume(float volume) = 0;
13
14 virtual bool is_muted() = 0;
15 virtual float volume() = 0;
16
17 protected:
18 bool is_muted_{false};
19};
20
21} // namespace esphome::audio_dac
virtual bool set_mute_off()=0
virtual bool set_volume(float volume)=0
virtual float volume()=0
virtual bool set_mute_on()=0