This program is working fine with the given Laser.wav file.
Whenever i try to use some other wave file, it does not work. I checked that,
fread(dataBuff, sizeof(unsigned char), sizeof(dataBuff), pWavFile) returns a lower value than that of laser.wav which is 1.8 kb size , while my wave file is 800kb in size.
Replied here: http://sourceforge.net/forum/message.php?msg_id=5253363