C# Using SoundPlayer to Pause and Resume

前端 未结 1 866
鱼传尺愫
鱼传尺愫 2020-12-22 12:03

I am another person dabbling with C# and wanting to create a simple audio application that plays wav files loaded into the program via an upload program. My issue is that I

相关标签:
1条回答
  • 2020-12-22 13:10

    SoundPlayer is extremely limited, and doesn't support Pause and Resume. Are you able to use the WPF MediaElement instead? You will find it is much more powerful, supporting playing files of many types, repositioning, setting volume, pausing and resuming. You can also use it to get the file length instead of mci.

    0 讨论(0)
提交回复
热议问题