ESPHome 2025.5.0
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
6namespace esphome {
7namespace audio_dac {
8
9class AudioDac {
10 public:
11 virtual bool set_mute_off() = 0;
12 virtual bool set_mute_on() = 0;
13 virtual bool set_volume(float volume) = 0;
14
15 virtual bool is_muted() = 0;
16 virtual float volume() = 0;
17
18 protected:
19 bool is_muted_{false};
20};
21
22} // namespace audio_dac
23} // namespace esphome
virtual bool set_mute_off()=0
virtual bool set_volume(float volume)=0
virtual float volume()=0
virtual bool set_mute_on()=0
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7