Cracking and buzzing sound

Hi I’m trying to make a music program by playing 4 second wav files repeatedly and simultaneously. But on a opengl1.5 computer it creates cacking noises during the playing. On a opengl2 computer I’m getting a buzz, when 2 files play simultaneously. What can I do about this?

edit: I tried lowering the sample rate to 8000hz which helped for the buzzing but the cracking is still there. Also converting to ogg didn’t help.