Volume control

Digital volume control is multiplying the numerical value of the sample by a factor.
This factor is in general < 1 but not all of the time.
Volume leveling (replay gain) is an example where > 1 might be applied.

By design the audio is no longer bit perfect when digital volume control is applied.

One easy example is applying volume control. If you change the volume to 90% for example, the software will multiply all the digital audio data by 0.9. The result is rarely an exactly 16-bit word, just like dividing regular numbers often results in non-integer numbers. It usually has a remainder...which will require more bits (digits, or decimal places in regular numbers). If the data path is limited to 16-bit, the remainders will be truncated. That's analogous to dividing 10 by 3, and having a result of 3. With extra digits available, a more accurate result of 3.333... can be achieved.

Elias Gwinn

Most DACs accept 16 or 24 bit words only.
No matter how the volume control is calculated, the result must be rounded to a 16 or a 24 bit integer.
The remainder simple doesn’t fit in.
This is called quantization error.


This affect affects the LSB (Least Significant Bit) both in 16 and in 24 bits.
The LSB of a 16 bit word is -96 dBFS. Although very soft, it is audible. Dither must be applied to camouflage this artifact.
In case of a 24 bit word the LSB is at -144 dBFS. This is way below the noise floor of any gear.
Using a 24 bit DAC has an advantage.

 

A lot of audiophiles think digital volume control is bad.
They set the digital volume control to 100% and use an analog device because with digital volume control one loses resolution and dynamic range.

 

The loudest a DAC could play is called 0 dBFS, say all bits are on.
If we lower the volume digital we ‘shift’ to the right.

If we play 16 bit program material on a 16 bit DAC and lower with 48 dB, we have only half of the number of bits left.

MSB                 LSB
1111111111111111
000000001111111111111111

 

Yes, we do loose resolution and with each bit chopped off, 6 dB of the dynamic range.

 

If we play 16 bits program material on a 24 bit DAC and lower with 8 bits (48 dB) we still have all 16 bits in the register of the DAC.

111111111111111100000000
000000001111111111111111

 

When using 24 bits program material on a 24 bit DAC we do loose resolution but in case of a 48 dB reduction, we still have 16 bits of resolution left.

111111111111111111111111
00000000111111111111111111111111

 

Today you have DACs working internally with 32 bits and even have a 32 bit data path over the USB..

 

Playing 16 bits audio on a 24 bit DAC sounds like the ideal solution.
If we reduce the volume by -48 dB (8 bits) we still have the full 16 bit signal.
No loss of resolution at all.
Theoretically, it works this way.
Practice is a bit different.
Somewhere the noisefloor of the DAC kicks in.

In case of a well designed DAC this noise is very low.

Dynamic compression

If the loudest passage at recording time is 100 dB, we have the full dynamic range at playback if we adjust the volume control such that our speaker produces 100 dB.
If we set the volume lower, we will lose the dynamics of the recording.
This applies to any volume control, digital or analog

Signal to noise ratio

Mark Mallinson provided some data comparing analog and digital volume control using 16-bit audio

An analog volume control brings down the peak signal and noise simultaneously to preserve S/N down to low output levels.

 

Level Analog Digital
0 96 96
-5 96 96
-10 96 94
-15 96 89
-20 96 84
-25 96 79
-30 96 74
-35 96 69
-40 96 64
-45 91 59
-50 86 54
-55 81 49
-60 76 44

S/N ratio of volume control using a DAC with a -104dB S/N ratio, 16-bit/44.1 audio.

 

Already at -10 dBFS the analog volume control outperforms the digital in S/N ratio.

This is the consequence of the quantization noise.

 

Level Analog Digital
0 96 96
-5 96 96
-10 96 96
-15 96 96
-20 96 96
-25 96 96
-30 96 96
-35 96 96
-40 96 92
-45 91 87
-50 86 82
-55 81 77
-60 76 72

S/N ratio of volume control using a DAC with a -132dB S/N ratio, 16-bit/44.1 audio.

Now we have to go down to -40 dBFS to hear a difference.

Mark Mallinson

It is unclear how these numbers are obtained.
The correctness is questioned at the What’s Best Forum.

Analog versus digital volume control

ESS has a nice paper on this subject.

 

If one decreases the signal analog, the noise floor goes done as well.

 

 

Do the same using digital volume control on a 16 bit DAC and one sees the signal lowers exactly the same as in case of analog volume control but the noise remains the same.
Effectively the SNR (Signal to Noise Ratio) gets worse.
At -1 dBFS SN=97.63 and ENOB=15.87
At -35 dBFS SN=63.18 and ENOB=10.17
(ENOB=Effective Number of Bits, the number of bits in the digitized signal above the noise floor.)

Indeed the audiophile is right; we lose resolution and get more noise!

 

 

The answer by ESS is using a 32-bit DAC.
Now you can lower the volume substantial without having the quantization error.

Excellent result with one caveat; the digital volume control must have access to the DACs internal data path.

This means it must be implemented in the DAC.
The digital volume control of your media player won’t do.

How to test

If you have a pre-amp or a DAC with analog volume control, you can simply test the impact of both digital and analog volume control.
Set the digital volume control of your media player to 100%, hopefully this is 0 dBFS.
Play at a realistic level. Turn down the digital volume and increase the analog at the same time trying to keep the level constant.

 

Modest digital volume control e.g. up to -10 dB is in general considered not audible.

 

One thing is sure, digital volume control never wears, never crackles, never breaks!

TC Electronic Level Pilot

Passive analog volume control

Griffin PowerMate

USB Volume control. It send keyboard commands (Up/Down/Mute) to the PC.

 

References
  1. Digital vs. analog Volume Control - ESS
  2. Digital Volume Control - What's Best Forum
  3. Digital Volume Control - Audio Asylum
  4. Understand SINAD, ENOB, SNR, THD, THD + N, and SFDR so You Don't Get Lost in the Noise Floor - Walt Kester, Analog Devices