Storing a wav file in an array
问题 I need a fast method to store all samples of a wav file in an array. I am currently working around this problem by playing the music and storing the values from the Sample Provider, but this is not very elegant. From the NAudio Demo I have the Audioplayer Class with this Method: private ISampleProvider CreateInputStream(string fileName) { if (fileName.EndsWith(".wav")) { fileStream = OpenWavStream(fileName); } throw new InvalidOperationException("Unsupported extension"); } var inputStream =