SFML community forums

Help => Audio => Topic started by: hurrymomo on December 04, 2016, 07:12:47 pm

Title: Music/Sound causes assertion fails when exits
Post by: hurrymomo on December 04, 2016, 07:12:47 pm
I am running on Mac sierra
What i want to do is playing the music while doing other stuff.
however no matter where i construct the sf::music the following error occurs when i exit the program
Can anyone help me

AL lib: (EE) alc_cleanup: 1 device not closed
Assertion failed: (lockret == althrd_success), function LockLists, file /Users/m/Desktop/tmp/openal/build_deps/openal-soft-openal-soft-1.17.2/Alc/ALc.c, line 776.
Abort trap: 6
Title: Re: Music/Sound causes assertion fails when exits
Post by: Laurent on December 04, 2016, 07:40:18 pm
Do you mean that this code produces the error?

#include <SFML/Audio.hpp>

int main()
{
    sf::Music music;
    return 0;
}

If not, then please provide a complete and minimal code that reproduces your problem.
Title: Re: Music/Sound causes assertion fails when exits
Post by: hurrymomo on December 04, 2016, 09:22:23 pm
This is weird, this time, it actually works.
I am so sorry, may be i just did some crazy thing before