Hi, thank you for your reply!
Indeed, I've read about that they are using their own thread. But that seems to apply for playing music files only...? Maybe because I'm using values from a Buffer?
When I execute Sound.play() e. g. from the main loop of my OpenGL application (or any other terminating function), it will not play the sound. Doesn't matter whether Sound.play() runs within a separate threaded function or not. If I add sf::sleep() afterwards, it will play the sound while sleeping but the program is blocked. So I've put it all into a thread.
I will try your suggestion about the thread termination time!
Edit: Actually the main thread launches bunch of other code, in real it's waiting for a user input. So it does not terminate before the thread does.
Cheers