So I purchased a brand new Inspiron 15 7567 i7 128 GB SSD with the 1 TB HDD and 16 GB RAM, and have made sure all drivers and the bio are up to date. I've had the drivers analyzed from the dell support website, and have checked for updates as well through cortana as well as updated the sound drivers in device manager just to make sure it was up to date.
My problem is that whenever I plug or unplug the charger while audio from a video, music, or game is playing, it creates a weird distortion/cracking sound that persist for half a second and freezes the screen as if it were lagging for that duration as well. I've tried uninstalling the Realtek High Definition Audio Driver and re installing it but it still persist. The audio is fine normally, it's just whenever the charger is removed or plugged in that this problem occurs. Is this a driver issue? or hardware?