[WISHLIST] Volume in tvtime not equal to alsamixer (logarithmic scale / "mapped volume" should be used)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It adjusts the volume linearly, while the correct behaviour is to
adjust it logarithmically (in dB...). So the volume scale is
incorrect, and the volume level isn't equal to alsamixer's. I use
plain ALSA.

VOLUME MAPPING:
In alsamixer, the volume is mapped to a value that is more natural for
a human ear. The mapping is designed so that the position in the
interval is proportional to the volume as a human ear would perceive
it, i.e. the position is the cubic root of the linear sample
multiplication factor. For controls with a small range (24 dB or
less), the mapping is linear in the dB values so that each step has
the same size visually. Only for controls without dB information, a
linear mapping of the hardware volume register values is used (this is
the same algorithm as used in the old alsamixer).

(I'm talking about
http://git.alsa-project.org/?p=alsa-utils.git;a=blob;f=alsamixer/volume_mapping.c;h=1c0d7c45e6686239464e1b0bbc8983ea57f3914f;hb=HEAD
)
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux