SFML community forums

Help => Audio => Topic started by: santiaboy on January 25, 2013, 02:42:12 am

Title: How to check if a music has been loaded?
Post by: santiaboy on January 25, 2013, 02:42:12 am
Is there a way to check if the music has been loaded before? (without needing a bool variable)

I read the documentation and I don't seem to find it


Title: Re: How to check if a music has been loaded?
Post by: FRex on January 25, 2013, 03:34:42 am
I'm not sure if that's what you mean but did you try to check if duration is zero?
Title: Re: How to check if a music has been loaded?
Post by: santiaboy on January 25, 2013, 03:52:42 am
Well, that does solve it.
I wanted to know if there was some kind of music.isLoaded() or anything of the sort
Title: Re: How to check if a music has been loaded?
Post by: Laurent on January 25, 2013, 08:49:54 am
If you can't find it in the doc, then it doesn't exist ;)