title: Differences in length in TagLib# (C#) and TagLib (C++)
body: <p>I am currently in the process of moving my C# application over to Qt / C++. I'm running into problems with lengths from TagLib. I find it odd that TagLib# returns audio durations in milliseconds, while TagLib returns its (incorrect) durations in seconds. TagLib just returns <strong>zero</strong> for the length values, while TagLib# remains correct.</p>
  
  <p>Here is my source in C# / TagLib#...</p>
  
  <pre><code>TagLib.File tagfile = TagLib.File.Create(path);
  uint milliseconds = (uint)tagfile.Properties.Duration.TotalMilliseconds;
  </code></pre>
  
  <p>And here is what should be nearly equivalent in C++ / TagLib. I've even forced it to read accurately. No success.</p>
  
  <pre><code>TagLib::FileName fn(path);
  TagLib::FileRef fr(fn, true, TagLib::AudioProperties::Accurate);
  uint length = fr.audioProperties()-&gt;length();
  </code></pre>
  
  <p>It works as expected for a good majority of my media files. However, a select few audio files fail to return any audio properties (the rest of the tag information reads fine!). The exact same audio properties are returned with no issues on TagLib#.</p>
  
  <p>Any ideas are appreciated. Thanks.</p>
  
  <p><em><strong>Does anyone have any more ideas before the bounty ends?</em></strong></p>