Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
getPlayLength cannot return -1 because it returns an unsigned int.

typedefinition
Registered User
Quote
2020-05-20 09:02:33

The documents stated that getPlayLength returns -1 if the play length of a file is unknown. But since getPlayLength returns an unsigned int, it cannot actually return -1.


erik
Registered User
Quote
2020-05-20 09:51:46

You can do it like this:

if ((int)len == -1)
{
// unknown
}



Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact