如何在C ++中播放MultiSound [英] how to play multiSound in C++
本文介绍了如何在C ++中播放MultiSound的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以同时使用playsound()播放multiSound吗?
Can I use playsound() to play multiSound at a same time?
How do I use it?
推荐答案
什么是"multiSound"?我假设您想同时播放不同的音频文件?然后调用 PlaySound() [
What''s a "multiSound"? I assume that you want to play different audio files at the same time? Then call PlaySound()[^] multiple times.
You could even call it multiple times sequentially from the same thread, specifying a different sound file to play each time (see the SND_ASYNC flags, which makes the call return immediately). This way, the call will return immediately and the next sound will start playing, while the previous sound is still playing.
这篇关于如何在C ++中播放MultiSound的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文