title: how to get length of wav file in windows phone
body: <p>I jwant to get length of wave file. Currently I'm using following code</p>
  
  <pre><code>using (IsolatedStorageFile isofile = IsolatedStorageFile.GetUserStoreForApplication())
  {
      using (IsolatedStorageFileStream isostream = new IsolatedStorageFileStream(FilePath, System.IO.FileMode.Open,System.IO.FileAccess.Read, isofile))
      {
          me = new MediaElement();
          me.SetSource(isostream);
      }
   }
  embedVoiceLength = me.NaturalDuration.TimeSpan.TotalSeconds;
  </code></pre>
  
  <p>However, it doesn't return the length from <code>naturalduration.timespan.totalseconds</code> , because <code>me</code> is not opened;</p>