ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:
Ambiera Forum > irrKlang
getPlayLength cannot return -1 because it returns an unsigned int.
Author Text

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:

 

  

Forum 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


   





Software: Ambiera Light Forum. © 2008-2019 Nikolaus Gebhardt, Ambiera e.U.