SFML community forums
Help => Audio => Topic started by: Tukimitzu on September 16, 2016, 01:18:01 am
-
Is there any problem having multiple sf::Music opened? Should I call openFromFile(...) only when I'm about to play it or can I have multiple sf::Music opened and then just call play when I want? Even if there "shouldn't" be a problem, what is safer, faster and what not?
Currently I open all my music at once on the start of the program, then play it as I need, but I'm not sure that's a good idea.
-
There's no problem doing all the things you describe. If you have issues with that, please describe them. If not, then... why do you ask such a question?
-
To confirm or deny that I'm doing things right.
I'm trying to find this leak (http://en.sfml-dev.org/forums/index.php?topic=20863.0) so I'm looking for it everywhere.
Thanks!
-
There's nothing wrong in what you do (without seeing your code), but that doesn't mean that SFML nor OpenAL is free of bug.
Let's focus on your other thread and close this one, to avoid splitting the answers.