• 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
Name
Last commit
Last update
..
AlsaMixerPlugin.cxx Loading commit data...
HaikuMixerPlugin.cxx Loading commit data...
NullMixerPlugin.cxx Loading commit data...
OSXMixerPlugin.cxx Loading commit data...
OssMixerPlugin.cxx Loading commit data...
PulseMixerPlugin.cxx Loading commit data...
PulseMixerPlugin.hxx Loading commit data...
RoarMixerPlugin.cxx Loading commit data...
SoftwareMixerPlugin.cxx Loading commit data...
SoftwareMixerPlugin.hxx Loading commit data...
WinmmMixerPlugin.cxx Loading commit data...
volume_mapping.c Loading commit data...
volume_mapping.h Loading commit data...