My program plays sounds (WAV files using MS Multimedia Control) for various events. However, frequently events promting a sound occur in rapid succession in the code.
The two ways I've figured out:
1. Each sound stops the previous one before playing, resulting in only the last one in the order being heard.
2. All of them play over each other.
I need some way to get the computer to wait for the first sound to play before the second one starts. Ideally, it should pause the entire program while the sounds are playing.
The two ways I've figured out:
1. Each sound stops the previous one before playing, resulting in only the last one in the order being heard.
2. All of them play over each other.
I need some way to get the computer to wait for the first sound to play before the second one starts. Ideally, it should pause the entire program while the sounds are playing.