Why do I hear artifacts playing close to full digital scale files? #1607
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I don't know how the artifacts would sound like but on my system I can at least hear no difference between VLC and Audacious 4.4.2 with PipeWire or PulseAudio. Maybe the volume was too low but the sound is unpleasant for my ears.
@dreamlayers: Have you tried using integers as bit depth in the Audacious output settings? @jlindgren90: Do you have ideas where the artifacts could be coming from? And which other Audacious settings could be related to this behavior? |
Beta Was this translation helpful? Give feedback.
-
@radioactiveman My bit depth was set to "Automatic". Using any of the integer bit depths and floating point bit depth doesn't change this. For me the artifacts are very easy to hear and I don't need to turn this up loud. But you don't need to listen to it. You can also look at the output on a spectrogram, or use the FileWriter plugin and look at the samples. With the bit depth set to Automatic, Audacious output floating point samples. Then it's easy to use sox to convert the file to integer and see clipping warnings.
It's also possible to dump the samples in the file. I don't know what tool exists for that so I made a small C program: #include <stdio.h>
int main(void)
{
FILE *f = fopen("sin.wav.wav", "rb");
if (!f) return 1;
if (fseek(f, 48, SEEK_SET) != 0) return 2;
while (1) {
float fl;
if (fread(&fl, sizeof(fl), 1, f) != 1) break;
printf ("%.20f\n", fl);
}
fclose(f);
return 0;
} Then running it shows the exact same number of clipped samples:
Here is some example output direct from the program
There should be no numbers below -1 and above +1 present, but they are present. |
Beta Was this translation helpful? Give feedback.
-
I had the equalizer turned on. Turning it off fixed the problem. I never use the equalizer. I thought I had it turned off, and it wasn't visible, so I didn't know I had it turned on. Also, in the Winamp classic interface it is hard to see if everything is set to the middle. I thought everything was set to the middle, but careful investigation showed that one of the bands was a tiny bit above the middle. There should be a one pixel dotted line showing only. In the GTK interface there are numbers below the sliders and those can easily be set to zero. After setting all equalizer values to 0, the problem went away, even when the equalizer was turned on. So, it seems the equalizer can very easily generate clipping. If turning up any of the bands, one needs to turn down the preamp to avoid clipping. There seems to be no automatic protection against clipping. Edit: I'm not able to create these "aliasing of harmonics" artifacts using Winamp 5.8 build 3660. Allowing users to mangle their sound so easily, without the application helping the user to avoid clipping or notifying about clipping, could be seen as a bug. Though since I never use the equalizer it is not important to me. |
Beta Was this translation helpful? Give feedback.
I had the equalizer turned on. Turning it off fixed the problem.
I never use the equalizer. I thought I had it turned off, and it wasn't visible, so I didn't know I had it turned on. Also, in the Winamp classic interface it is hard to see if everything is set to the middle. I thought everything was set to the middle, but careful investigation showed that one of the bands was a tiny bit above the middle. There should be a one pixel dotted line showing only. In the GTK interface there are numbers below the sliders and those can easily be set to zero. After setting all equalizer values to 0, the problem went away, even when the equalizer was turned on.
So, it seems the equalizer can very eas…