]> git.alsa-project.org Git - alsa-utils.git/commit
alsamixer: use cubic scale for volume bars
authorClemens Ladisch <clemens@ladisch.de>
Mon, 6 Dec 2010 13:07:48 +0000 (14:07 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 12 Sep 2012 13:47:24 +0000 (15:47 +0200)
commit6e125789c04d9bb7c5c24595d15738ea9481a9a8
tree3943277208a4f9ac588e559c58cec4e4b5f83e19
parentff78d9727b390f4118490253ef136baaf210b917
alsamixer: use cubic scale for volume bars

Instead of mapping the raw volume values linearly to the screen, use
a mapping where the bar height is proportional to the audible volume,
i.e., where the amplitude is the cube of the bar height.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
alsamixer/Makefile.am
alsamixer/mixer_display.c
alsamixer/mixer_widget.c
alsamixer/volume_mapping.c [new file with mode: 0644]
alsamixer/volume_mapping.h [new file with mode: 0644]