This project is read-only.

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

May 17, 2015 at 1:06 PM
Edited May 17, 2015 at 1: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?
May 17, 2015 at 1:53 PM
Well I am going to have a look at it but even the Windows Explorer tells me 4:36 ->
May 17, 2015 at 2:14 PM
Edited May 17, 2015 at 2: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