Professionals! I summon thee!
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.
You should upgrade or use an alternative browser.
What is digital gain, and when should I worry about it?
- Thread starter Spinjitzu
- Start date
VNandor
500+ Head-Fier
- Joined
- Oct 17, 2014
- Posts
- 805
- Likes
- 418
You should always worry about digital gain if you want to increase it. If you don't know what clipping is and how to avoid it then don't do it. Reducing digital gain can sometimes increase noise and distortion but it's not going to noticable unless you really overdo it (think of like -40~-50dB gain). A properly implemented digital volume control won't increase either noise or distortion even if you decided to apply insane amounts of negative gain for some reason.
I'll spare you from my explanation of how digital gain works, I already tried to do that in an other topic but it ended up being too convoluted. Maybe someone else can do it in a clear and concise way.
I'll spare you from my explanation of how digital gain works, I already tried to do that in an other topic but it ended up being too convoluted. Maybe someone else can do it in a clear and concise way.
Basically, if I wanna convert an audio file format to another, I shouldn't change the volume to avoid digital gain right?You should always worry about digital gain if you want to increase it. If you don't know what clipping is and how to avoid it then don't do it. Reducing digital gain can sometimes increase noise and distortion but it's not going to noticable unless you really overdo it (think of like -40~-50dB gain). A properly implemented digital volume control won't increase either noise or distortion even if you decided to apply insane amounts of negative gain for some reason.
I'll spare you from my explanation of how digital gain works, I already tried to do that in an other topic but it ended up being too convoluted. Maybe someone else can do it in a clear and concise way.
VNandor
500+ Head-Fier
- Joined
- Oct 17, 2014
- Posts
- 805
- Likes
- 418
Oh, so that's why you asked. I've heard that some bad encoders can clip the signal if you don't apply a tiny amount of negative gain to the file before the conversion. I have never noticed this problem, with the encoders I use, I never came across clipping. I think your files should convert just fine without any kind of preprocessing like changing the volume if your encoders are up to date.Basically, if I wanna convert an audio file format to another, I shouldn't change the volume to avoid digital gain right?
Last edited:
I don't think there's any preprocessing involved, i.e changing the volume. The option for volume change is there, but I don't think I should tamper with that. Also, what do you mean by "clipping the signal"? I'm a newbie here, so I don't know a lot of audio terms.Oh, so that's why you asked. I've heard that some bad encoders can clip the signal if you don't apply a tiny amount of negative gain to the file before the conversion. I have never noticed this problem, with the encoders I use, I never came across clipping. I think your files should convert just fine without any kind of preprocessing like changing the volume if your encoders are up to date.
sander99
Headphoneus Supremus
A bit simplified: a digital signal is a sequence of numbers. For example numbers of 16 bits in a 16 bit PCM signal. A 16 bit (2's compliment to allow negative values) number can have any integer value in the range -32768 .. +32767. Lowering the gain corresponds to multiplying all those numbers in the signal with some positive constant c<1. Raising the gain corresponds to multiplying all those numbers with some constant c>1. Now maybe you see the problem: the outcome of such a multiplication could be a number or numbers outside the allowed range (and at best the max or min value is used, or the extra bit or bits that would have been needed to represent the out of range number is simply ignored and an even less appropiate number is used resulting in a severely distorted waveform). That is (one form) of digital clipping. (In fact there can already be a problem before you get numbers outside the range, intersample clipping I think it is called, but never mind that for now).
danadam
100+ Head-Fier
- Joined
- Jan 2, 2017
- Posts
- 155
- Likes
- 116
AFAIK every lossy codec can clip if the decoder outputs integer samples. Lossy codec by definition changes a waveform. Changing the waveform means that some samples will get smaller and some will get bigger. If those samples that get bigger were already near or at 0 dBFS, now they will be above 0 dBFS.I've heard that some bad encoders can clip the signal if you don't apply a tiny amount of negative gain to the file before the conversion.
Users who are viewing this thread
Total: 2 (members: 0, guests: 2)