True, but that is still not his problem, since he only plays the sound once, over a thread.If the audio output is busy playing one sound, pushing more data to it from another thread won't cause two sounds to play simoultaneously, one needs a mixer for that.
I have a suspition, that it has to do with the fact the thread runs (and probably finishes) before QApplication::exec() is called.
My guess is, that there are some events that need the QApplication event loop... but as I said, this is only a guess.
This is why I suggested the sleep.
Another way to test it would be to start the thread after QApplication::exec() has been called.
When this is solved, the problem with multiple sounds on the sound system with out a mixer problem will still be there though...
Bookmarks