I have a question to the getlength function.
If i use the function to get the song length in ms i will get: 201795ms
This in Minutes ( /1000 / 60) = 3,36325min
But the Windows Mediaplayer and WinAmp tell me that the song length = 3:21 is.
Why does this happen? How can I get the original songlength?
Please help me. (Sorry for my bad English)
- Witch asked 12 years ago
I think the problem is just that you’re misinterpreting the result returned.
Both Winamp and FMOD are telling you the same things, just in different ways.
Remember that 3.36325 is in minutes, and 3:21 is in minutes:seconds. So, to get them to be equal, you take your whole number of minutes (3), and then multiply your fractional minutes (0.36325) by 60 seconds. This will give you 21.795 seconds.
Thus, 3.36325 minutes is, actually, equal to 3:21.
- Adiss answered 12 years ago
Please login first to submit.