Utility Program to fix corrupt WAV file

A while ago, a friend in the music industry had a problem with his high-end audio recorder losing power during a recording, leaving behind a wav file that was unplayable. This little program below attempts to fix incomplete wav files, by fixing the header with correct metadata. The file must be a standard uncompressed wav file (RIFF format). Only supports fixed-length wav files, does not support 32 bit float files.