Perturbatio #1 make sure x.wav is a valid pcm wav, try playing a sound from your windows\media folder