mirror of https://github.com/ericonr/sndio.git
unbreak volume calculation
This commit is contained in:
parent
857707b227
commit
a525ed859b
|
@ -719,6 +719,7 @@ dev_mix_setmaster(struct dev *d)
|
|||
i->mix.slot_cmax >= j->mix.slot_cmin)
|
||||
n++;
|
||||
}
|
||||
weight /= n;
|
||||
}
|
||||
if (weight > i->mix.maxweight)
|
||||
weight = i->mix.maxweight;
|
||||
|
|
Loading…
Reference in New Issue