4
« on: March 26, 2010, 01:15:37 pm »
Hi guys/girls,
I started coding a simple breakout clone and used the sf::Music class for the background music.
The problem is, the programm can be exited by pressing [exit] or simply clicking the [X]. After the main programm closes, the sound continues to run.
I am using Ubuntu 9.04 with SFML 1.5.
In System Monitor I see the main programm (the music thread part I guess) after I closed the main programm. I tried the Stop() funnction and creating the Music object on the Heap and deleting it, but this part of the programm just won't quit, and I cannot access Terminate() since its declared private in the class above sf::Music
I guess I am overlooking something, is there a way to end the Music thread before the whole soundfile has played?
thx in advance,
Agito