@RpiBeginner You could try to add this to the file /boot/config.txt to improve the analog sound from the 3.5 mm jack:audio_pwm_mode=2
It changes to a new (still experimental?) audio driver. My audio via the 3.5 mm jack improved significantly with it. It won't change anything for HDMI audio, as I guess it won't for an external USB audio card which should have its own drivers.
You can find this and some other tips at https://github.com/RetroPie/RetroPie-Setup/wiki/Sound-Issues under "White Noise Fix".
This worked great for me, although I did order a USB sound thing. I can try that out too. Thank you