Re: [LAU] Calculating absolute played(!) volume

From: Fons Adriaensen <fons@email-addr-hidden>
Date: Fri Oct 16 2020 - 18:54:30 EEST

On Thu, Oct 15, 2020 at 08:54:57PM +0200, Jeanette C. wrote:

> for a project I am wondering, if the absolute output volume of a pair of
> headphones, directly connected to a soundcard, can be gained from the
> settings?
>
> I have a Delta 1010. Inside alsamixer the volume for the DACs is set in dB.
> Is there a straight relationship between these settings and a connected
> output device? My pair of headphones, IIRC, have a resistence of 60 Ohm.
>
> Any help is appreciated. A good pointer will do. If there is a method
> without special measuring equipment, I'd be happy. If not... So be it.

This isn't simple :-(

Assuming that by 'absolute output volume' you mean the sound pressure
level (SPL), you need to know four things:

1. The sensitivity of your headphone, that is the SPL for some
given voltage. This may be in the specs of your headphone. If not,
it can be measured, and that requires some rather specialised
equipment (dummy head, calibrated mic, calibrated level meter,
calibrated signal source).

2. The 'gain' of your sound card at a particular DAC gain setting.
This is the relation between the output voltage (in dBu or dBV) and
the RMS level of the digital signal sent to the sound card. This
could be measured (using an RMS voltmeter) with a know software
generated signal.

3. How (2) depends on the volume settings (if any) of your sound card.
If these are in dB and accurate (I wouldn't trust ALSA for this) that
is easy.

4. The RMS level (in dB FS) of the signal you are playing. Zita-mu1
provides this but is probably of little use to you. What do you normally
use for metering ?

Ciao,

-- 
FA
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sat Oct 17 04:15:01 2020

This archive was generated by hypermail 2.1.8 : Sat Oct 17 2020 - 04:15:01 EEST