ESPHome
2025.2.2
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
d
e
f
i
j
l
m
n
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
d
o
p
s
t
v
w
+
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Functions
_
a
l
m
o
s
t
u
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
esphome
esphome
components
mixer
speaker
automation.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
mixer_speaker.h
"
4
5
#ifdef USE_ESP32
6
7
namespace
esphome
{
8
namespace
mixer_speaker {
9
template
<
typename
... Ts>
class
DuckingApplyAction
:
public
Action
<Ts...>,
public
Parented
<SourceSpeaker> {
10
TEMPLATABLE_VALUE(uint8_t, decibel_reduction)
11
TEMPLATABLE_VALUE(uint32_t, duration)
12
void
play(Ts...
x
)
override
{
13
this->
parent_
->apply_ducking(this->decibel_reduction_.value(
x
...), this->duration_.value(
x
...));
14
}
15
};
16
}
// namespace mixer_speaker
17
}
// namespace esphome
18
19
#endif
esphome::mixer_speaker::DuckingApplyAction
Definition:
automation.h:9
x
uint16_t x
Definition:
tt21100.cpp:17
esphome::Action
Definition:
automation.h:121
esphome::Parented< SourceSpeaker >::parent_
SourceSpeaker * parent_
Definition:
helpers.h:549
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
mixer_speaker.h
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition:
helpers.h:538
Generated by
1.8.13