This is a problem which happens with Realtek soundcards. If you search the web, you'll see that people encounter the static problems when playing other games too.
One of the methods was to reduce sound acceleration. It hasn't worked for me.
Another method was to install new drivers. I tried that. It worked for the first few minutes, but after that, no sound was emitted! My music files still could be played (can be recorded in Audacity), just that they couldn't get through the sound card! So I rolled back to the old driver.
You can try the above methods, some people had success but I still haven't.