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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Agito

Pages: [1]
1
Audio / Newbie Problem sf::Music cannot end music thread
« on: March 26, 2010, 05:58:47 pm »
found the problem, the while(1) loop was the problem

2
Audio / Newbie Problem sf::Music cannot end music thread
« on: March 26, 2010, 05:30:31 pm »
http://codepad.org/JnBsV8mQ heres my full code, all in one file

i'm really puzzled about this

3
Audio / Newbie Problem sf::Music cannot end music thread
« on: March 26, 2010, 03:16:42 pm »
Well, I am not sure wether this is a bug or just me being stupid...

4
Audio / Newbie Problem sf::Music cannot end music thread
« 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

Pages: [1]
anything