]> 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)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 6 Dec 2010 13:07:48 +0000 (14:07 +0100)
commit34bb514b5fd1d6f91ba9a7b3a70b0ea0c6014250
treedbe88d759d48fe750ce89766b990993f2e202425
parent70a01748d594ef57a1962e4cb012927faf6d852f
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]