Added WAVE file validation