So I have a headphone plugged in, whenever I change the sound volume a sudden noise appears (then disappears.) Also, when I listen to something then close it, the noise occurs as well after a short time of quitting VLC media player.

Is this hardware/software related? Any way to fix it?