WAV file parsing to handle extended format headers