Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alsamixer: fix calculation in set_normalized_volume (overflow)
Lowering volume below 0 causes overflow spike to 100% volume (volume goes below 0 and back to 100 repeatedly). 0 overflows past infinity when holding down z,x,c. > value = lrint_dir(6000.0 * log10(volume), dir) + max; (where volume = 0 , and dir = -1 . min = -9999999 , and max = -6) > log10(0) is negative infinity = error Fixes: #266 Reported-by: genr8eofl <genBTC@gmx.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
- Loading branch information