Re: Bug in alsa-lib or alsamixer and amixer

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

 



On 17 June 2010 00:34, Raymond Yau <superquad.vortex2@xxxxxxxxx> wrote:
> 2010/6/17 Colin Guthrie <gmane@xxxxxxxxxxxxxx>
>
>
>>> But this sucks as
>>> the percentage shown in alsa is not the same as the percentage shown in
>>> other GUIs.
>
> alsamixer and amixer 's percentage were not designed as your purpose
>
> Have you studied the source code of alsamixer and amixer
>
> the alsa developers have already posted a lot of time in the mailist list ,
> they prefer to use dB scale instead of percentage
>

That is exactly why percentages are bad. One cannot relate one control
to another if one used percentages.
Say that an  audio card had two controls that adjust the gain of the
audio one after the other.
If I set to to 5% above base_volume and the second 5% below
base_volume, would the output be base_volume???
the first 5% might be +5dB, and the second might be -4dB, one does not know.

Whereas, in dB, if one was set to -5dB, and the other set to +5dB, we
would be sure that the accumulative output would have a gain of 0dB.
Percentages are not nor real units at all, dB are.

Kind Regards

James
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux