Utility to read a wave file header and duration