SFML community forums
Help => Audio => Topic started by: Nyssiom on July 15, 2015, 06:58:35 pm
-
Hello,
I just decided to use the SFML with Qtcreator for a little project.
I build the library as explained on the website, etc
When testing the "sfml works" program, everything is fine, the window is displayed, but when I try to create any Audio object, the program crashes at the beginning >:(
When I simply include Audio.h, it's fine..
I continue searching, but nobody seems to have this precise problem...
Thanks
-
My guess is that you haven't placed the openal32.dll next to your application.
Then again you didn't say what OS etc...
-
1. Are you building the application with the exact same compiler that was used to build SFML?
2. Are you sure you are not mixing a debug build of your app with the release version of SFML (or vice versa)?
3. Are you creating the SFML audio objects as global variables? (If "yes", then stop doing that).
4. What OS are you using?
5. What version of SFML are you using? (pre-built binary or self compiled?).
6. Could you provide a SSCCE (http://sscce.org/) that shows the problem that people can test on their own?
7. What exact errors do you get when the crash happens?
8. What does the stack trace look like at the crash point?
Also, please read this: http://www.catb.org/esr/faqs/smart-questions.html
-
Didn't know openal32.dll was necessary..
http://www.sfml-dev.org/faq.php#grl-dependencies
Jesper Juhl, thank you too (again, I'll try to make a better topic next time)
You're welcome and thank you, that would be nice :)
-
I just put openal32.dll and it now works fine :)
thank you to both of you, I'll try to be more careful about my topic next time...
Thank you very much.
(I'm sorry I'm double-posting, I deleted my previous post (Yes I am dumb I know))
Didn't know openal32.dll was necessary..
http://www.sfml-dev.org/faq.php#grl-dependencies
Thank you Jesper :)