How can I play multiple sounds at the same time using SharpDX in WinRT?

一曲冷凌霜 提交于 2019-12-01 11:44:48

You'll have to create (and preferably pool) multiple SourceVoice instances and play them back simultaneously.

In fact, your current code should work, no? You may want to add a StreamEnd event listener to the SourceVoice to dispose of itself after playback is complete, and remember to enable callbacks when calling the constructor of the SourceVoice.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!