I have spent a lot of time searching the web for an solution but nothing seems to work. I tried these fixes
Static and crackling sound coming from speakers in 19.04
Cracking and popping sound from left side of headphone on Front Left/Right sound test
and the pulse-audio fix but nothing worked.
My Speakers just randomly crack and make noises when doing nothing and sometimes while playing back audio. I haven't had that Problem before and when i boot into windows everything is fine. So i can rule out a Hardware problem.
I got the Z370 AORUS Gaming 5 (rev. 1.0) with the Realtek® ALC1220 codec. Connected is an 5.1 Surround system made by Logitech.
The Problem was already there in 18.04 and Upgrading to 19 did nothing to fix it.
I just tried connecting and then switching to my external soundblaster card but staying connected to the mobo headers and the noises continues