How to overlap Playsound()?

I am making a loop software thing where you can play multiple chip tunes over eachother. I am wondering how to do this with playsound(), I need to overlap the loops.

1
2
3
  PlaySound(TEXT("chip1.wav"), NULL, SND_ASYNC|SND_FILENAME|SND_LOOP);
  } else if (loop == '2'){
  	PlaySound(TEXT("chip2.wav"), NULL, SND_ASYNC|SND_FILENAME|SND_LOOP);
You can't. PlaySound() can only manipulate one sound at a time. You need a better sound library. Here's a couple of good-looking ones plus the famous one.

http://www.portaudio.com/
http://jackaudio.org/
https://www.khronos.org/openml/
Topic archived. No new replies allowed.