We will need to see both the WAV file and the code for loading the WAV file into the sound buffer. But here are a few guesses.
First of all, I suppose that if we loaded the WAV file into the visual audio editor, we would see the sound approaching its steep end, instead of narrowing into silence. This will cause popping noise with almost any audio player.
, . WAV , DATA. , , , . WAV (, Visual Studio), , DATA , ? ReadFile , , ?