Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Music/Sound causes assertion fails when exits  (Read 2868 times)

0 Members and 1 Guest are viewing this topic.

hurrymomo

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Music/Sound causes assertion fails when exits
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Music/Sound causes assertion fails when exits
« Reply #1 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.
Laurent Gomila - SFML developer

hurrymomo

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Music/Sound causes assertion fails when exits
« Reply #2 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