main: Report when gains go back to nominal

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2023-10-12 16:53:35 +09:00
parent 64e6710dac
commit 7ab0fed6d3

View file

@ -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;