mirror of
https://github.com/ivabus/speakersafetyd
synced 2024-11-22 16:25:06 +03:00
main: Be less spammy about sample rates
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
5c1fd2b60b
commit
64e6710dac
1 changed files with 5 additions and 3 deletions
|
@ -174,14 +174,16 @@ fn main() {
|
|||
let cur_sample_rate = sample_rate_elem.read_int(&ctl);
|
||||
|
||||
if cur_sample_rate != 0 {
|
||||
sample_rate = cur_sample_rate;
|
||||
if cur_sample_rate != sample_rate {
|
||||
sample_rate = cur_sample_rate;
|
||||
info!("Sample rate: {}", sample_rate);
|
||||
}
|
||||
}
|
||||
|
||||
if (sample_rate == 0) {
|
||||
if sample_rate == 0 {
|
||||
panic!("Invalid sample rate");
|
||||
}
|
||||
|
||||
info!("Sample rate: {}", sample_rate);
|
||||
for (idx, group) in groups.iter_mut() {
|
||||
let gain = group
|
||||
.speakers
|
||||
|
|
Loading…
Reference in a new issue