Package wav provides support for the WAV file format.
Supported formats are PCM 8- and 16-bit, and IEEE float. Extended chunks (JUNK, bext, and others added by tools like ProTools) are ignored.
Header contains Wav fmt chunk data.
Wav reads wav files.
New reads the WAV header from r.
ReadFloats is like ReadSamples, but it converts any underlying data to a float32.
ReadSamples returns a [n]T, where T is uint8, int16, or float32, based on the wav data. n is the number of samples to return.