mirror of
https://github.com/ivabus/speakersafetyd
synced 2024-11-22 16:25:06 +03:00
main: Report when gains go back to nominal
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
64e6710dac
commit
7ab0fed6d3
1 changed files with 2 additions and 0 deletions
|
@ -194,6 +194,8 @@ fn main() {
|
||||||
if gain != group.gain {
|
if gain != group.gain {
|
||||||
if group.gain == 0. {
|
if group.gain == 0. {
|
||||||
warn!("Speaker group {} gain limited to {}", idx, gain);
|
warn!("Speaker group {} gain limited to {}", idx, gain);
|
||||||
|
} else if gain == 0. {
|
||||||
|
info!("Speaker group {} gain nominal", idx);
|
||||||
}
|
}
|
||||||
group.speakers.iter_mut().for_each(|s| s.update(&ctl, gain));
|
group.speakers.iter_mut().for_each(|s| s.update(&ctl, gain));
|
||||||
group.gain = gain;
|
group.gain = gain;
|
||||||
|
|
Loading…
Reference in a new issue