• Max Kellermann's avatar
    mixer/alsa: work around rounding error at volume 0 · bede5646
    Max Kellermann authored
    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
    bede5646
To find the state of this project's repository at the time of any of these versions, check out the tags.
NEWS 64.1 KB