mirror of
https://github.com/esphome/esphome.git
synced 2025-03-04 01:38:17 +00:00
24 lines
416 B
C++
24 lines
416 B
C++
#pragma once
|
|
|
|
#include "esphome/core/defines.h"
|
|
#include "esphome/core/hal.h"
|
|
|
|
namespace esphome {
|
|
namespace audio_dac {
|
|
|
|
class AudioDac {
|
|
public:
|
|
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;
|
|
|
|
protected:
|
|
bool is_muted_{false};
|
|
};
|
|
|
|
} // namespace audio_dac
|
|
} // namespace esphome
|