32-bit float input broken
When support for 24-bit integer .wav files was added, it broke existing 32-bit
float support, since the check for sample size is applied regardless of the
format type.
--- audio.c,v1.34
+++ audio.c
if( format.align == format.channels*samplesize &&
format.samplesize == samplesize*8 &&
(format.samplesize == 24 || format.samplesize == 16 ||
- format.samplesize == 8))
+ format.samplesize == 8 ||
+ (format.samplesize == 32 && format.format == 3)))
{
/* OK, good - we have the one supported format,
now we want to find the size of the file */