Play multiple sounds using SoundPlayer

后端 未结 6 491
清酒与你
清酒与你 2020-11-27 22:12

I\'m making a sampler program where each key from 1 to 9 will make a different sound. Everything works fine, but when I press two (or more) sounds at the same time, the seco

6条回答
  •  醉梦人生
    2020-11-27 22:47

    you need to use xAudio2 via SharpDX , it is a directX component dedicated for game development , you can find a full working sample here: https://github.com/sharpdx/SharpDX-Samples/tree/master/Desktop/XAudio2/PlaySound

提交回复
热议问题