Playing Multiple Sounds at Once in Qt

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2010-04-16T02:36:14Z Indexed on 2010/04/16 2:43 UTC
Read the original article Hit count: 319

Filed under:
|
|
|

I'm trying to play background music along with sound effects using Qt. However, I can't get more than one sound to play at once. For example:

QSound::play("Music.wav");
QSound::play("Effect.wav");

When this code is run (on Windows), you can hear Music.wav just start to play, but then it stops and Effect.wav plays. Is there any way to get the two sounds to play at once?

© Stack Overflow or respective owner

Related posts about qt

Related posts about sound