On Wed, Feb 17, 2010 at 01:52:11PM +1300, Eliot Blennerhassett wrote:
Lennart Poettering wrote:
I wonder how realistic it would even be to add an API for this. i.e. can we even know the refernce level? On many cards most likely not. For example, for my integrated USB speakers speaking of a reference voltage would already be misleading...
Certainly. Same for laptop speakers.
Perhaps could define 0dB as the highest valid volume setting that doesn't cause distortion in the audio when playing a full scale digital signal.
I think it's something we can leave to be specified for a given bit of hardware - the absolute level doesn't really mean a huge amount unless the user is actually interacting it in some way and going with the reference level that the hardware is using internally means that we get an idea of how much the control is affecting the signal, which is useful for getting an idea of the optimal level to set a given control to (generally the specified 0dB will give the lowest noise, particularly for amplification).
It's when the signal is being presented in a fashion which means it might have to be matched with that on another device that the absolute levels become interesting.