parsing WAVE header