I get this error when I'm trying to play a sound in XNA: Error 1 Audio file cash-register.wav contains non-PCM data. What is PCM data?


1 Answer 1


PCM stands for Pulse-Code-Modulation and is a way to digitally represent analogue (sound) data. The problem you're having is that your WAV file contains invalid data. Did you just rename a .mp3 file to .wav? Or did you use a program to convert the data? If so you should check the converter settings and make sure that only the sound data is converted and that all meta-data is discarded.

  • \$\begingroup\$ No, I just downloaded it as .waw file! I got this problem with several files :( \$\endgroup\$
    – 3D-kreativ
    Commented Aug 27, 2012 at 8:50
  • 1
    \$\begingroup\$ You could try to open it in an audio editor end re-export is as wave (44100Hz, 16Bit is probably the most common format) \$\endgroup\$
    – helium
    Commented Aug 27, 2012 at 9:12
  • 1
    \$\begingroup\$ It is valid for a .wav file to contain data in a format other than PCM. \$\endgroup\$ Commented Aug 27, 2012 at 10:11
  • \$\begingroup\$ Andrew Russel is right (as usual ;) ) see the codec comparison section of this page en.wikipedia.org/wiki/WAV it indeed lists a few other codecs though (L)PCM should be the most common. \$\endgroup\$
    – Roy T.
    Commented Aug 27, 2012 at 10:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .