• 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
volume_mapping.c 5.43 KB