I own a XPS L502X laptop which has inbuilt JBL 2.1 speakers. I use Ubuntu 12.04. I regularly use this ear training software called GNU Solfege. The issue is that my speakers make a static sound a lot when notes are played. Not just that. It also shrieks sometimes when songs are played.
About the sound, it happens in particular parts of a song. I mean, something like if it happens from 0:25 - 0:28 of a song and I rewind it back to 0:25 ,the sound still comes.