added recognition of extended format in WAV, to throw a more informative error