I'm looping this sound file: http://engy.us/misc/ThrusterLoop.wav . It plays perfectly in Windows on any number of players, but when I load it in as a SoundEffect in XNA it has these annoying clicks at the start and end of playback.
If I loop it for a while it doesn't do any of these annoying clicks in the middle. If I play it as a standalone sound, it will still click at the start. It's doing this clicking both in the emulator and on my physical device.
Why is it doing this? Is there something wrong with my sound file? It's a 16-bit Stereo 44.1 kHz PCM WAV file, which I assumed was pretty standard.
(edit2) I captured the sound produced through playback through XNA and compared it with the original waveform. Take a look:
http://engy.us/pics/Waveform_Original.png
http://engy.us/pics/Waveform_EmulatorXNA.png
Something is pretty screwed up with that playback! The two large amplitude changes must have been the clicks I heard. It seems to scramble up the first bit somewhat. Putting silence at the start probably helped some people because scrambled up silence doesn't produce any clicks.