Search code examples
c++windowssoundplayer

Play sound parallel


How can I play sound parallel in c++? I tried it with the PlaySound function of the Windows Api and Threads, but when a sound starts playing in another Thread, the sound from the other Threads stopped. Is there any way to get two different sounds to be played at the same time?


Solution

  • Use FModEx, Luke.

    Now seriously, FMod is a very easy-to-use sound library. Go to the linked page and download FMOD Ex Programmer’s API. Since it's quite mature library, you'll be able to find many examples and tutorials on how to use it.