Max Kellermann bede564618 mixer/alsa: work around rounding error at volume 0
Due to rounding errors, a slightly negative value can be passed to
set_normalized_volume(), which will make the log10() call fail.
Actually, volume 0 is already failing because log10(0) is illegal.  So
let's fix this by implementing two corner cases: <=0 and >=100.

Closes #212
2018-02-10 09:07:51 +01:00
..
2017-01-03 20:48:59 +01:00
2018-01-07 17:20:26 +01:00
2018-01-07 17:20:26 +01:00
2018-01-07 17:20:26 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00
2017-01-03 20:48:59 +01:00