Re: [LAD] Presenting volume control sliders

From: Chris Cannam <cannam@email-addr-hidden-day-breakfast.com>
Date: Thu May 21 2009 - 22:48:33 EEST

On Thu, May 21, 2009 at 8:27 PM, Lennart Poettering <mzynq@email-addr-hidden> wrote:
> From reading through the ALSA drivers I know that a lot of sound card
> mixer controls usually have a much higher dB resolution near 0dB then
> the have near -90dB. Most of the time the steps they choose are very
> arbitrary however.

There is an IEC standard for this mapping in meters (IEC 60-268-18)
which works OK for faders as well if extended in a sensible way down
to -inf, particularly if you don't want to go above 0dB. It divides
the range up into several sections which are individually linear in
dB. There's code for this mapping in several places, including
base/AudioLevel.cpp in the Rosegarden source code.

A cubic mapping is also good.

Chris
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Fri May 22 00:15:01 2009

This archive was generated by hypermail 2.1.8 : Fri May 22 2009 - 00:15:01 EEST