mirror of
https://github.com/ivabus/speakersafetyd
synced 2024-11-10 02:15:16 +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
|
@ -194,6 +194,8 @@ fn main() {
|
|||
if gain != group.gain {
|
||||
if group.gain == 0. {
|
||||
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.gain = gain;
|
||||
|
|
Loading…
Reference in a new issue