WaveFileReader will return data from the read method in whatever format is in the WAV file. This might be PCM 16 bit (which is most common), but it can in fact be almost anything. If it is 16 bit, then Wave16ToFloatProvider will do what you want, or more simply, use the ToSampleProvider() extension method to get the ability to read floating point samples directly without having to extract them from byte arrays
↧