GetLength() not reporting correct length for all mp3's

May 17, 2015 at 12:06 PM
Edited May 17, 2015 at 12:07 PM
I found mp3 files for which the ISoundOut.WaveSource.GetLength() function does not return the correct length.

For the file in the link, the correct length is 3:41. The ISoundOut.WaveSource.GetLength() function returns 4:36 however.

The file in question: file

Is this an issue or should I use another function to get the total length of a file?
Coordinator
May 17, 2015 at 12:53 PM
Well I am going to have a look at it but even the Windows Explorer tells me 4:36 -> http://fs1.directupload.net/images/150517/yc36uorw.png
May 17, 2015 at 1:14 PM
Edited May 17, 2015 at 1:23 PM
Thanks. I didn't think of checking with explorer. I found it strange that my player stopped playing at 3:41, while reporting the length is 4:36. Then I opened the file in foobar, which shows a length of 3:41. After reading your reply I did more tests with what I have installed on my computer. These are the results:

foobar2000, winyl, mediainfo, taglib#: these all report 3:41
vlc, zune: these report 4:36