In the uncompressed situation I know I need to read the wav header, pull out the number of channels, bits, and sample rate and work it out from there: (channels) * (bits) *
Download NAudio.dll from the link http://naudio.codeplex.com/
and then use this function
public static TimeSpan GetWavFileDuration(string fileName) { WaveFileReader wf = new WaveFileReader(fileName); return wf.TotalTime; }
you will get the Duration