Read Resampled WAV file to float[] with NAudio?

Mar 22, 2013 at 10:58 PM
I resampled a wav file to 16 bit PCM, 8000khz, mono and would like to get some features out of it. This requires me to read the wav file to a float[].
using(WaveFileReader reader = new WaveFileReader(@"C:\Users\me\Desktop\somefile.wav")){
// read data to float[]?
}
really new to NAudio
Coordinator
Mar 23, 2013 at 9:32 AM
AudioFileReader will give you the samples already converted to floats. Alternatively put a Pcm16ToSampleProvider after the reader