Hi,
in WaveFileReader.TryReadFloat data is read by Read(value, 0, x), with x, for example, =2 for 16 bits per sample.
However, if the wav file is multichannel, say 6 channels, each sample has 12 bytes. So the Read method throws an exception "Must read complete blocks".
Comments: This will be fixed in NAudio 1.7 with a new method called ReadSampleFrame. This will return an array of floats, one per channel, or null at end of file. I've marked TryReadFloat as Obsolete.
in WaveFileReader.TryReadFloat data is read by Read(value, 0, x), with x, for example, =2 for 16 bits per sample.
However, if the wav file is multichannel, say 6 channels, each sample has 12 bytes. So the Read method throws an exception "Must read complete blocks".
Comments: This will be fixed in NAudio 1.7 with a new method called ReadSampleFrame. This will return an array of floats, one per channel, or null at end of file. I've marked TryReadFloat as Obsolete.