How to play mp3 files in C#?

前端 未结 7 980
孤独总比滥情好
孤独总比滥情好 2020-12-09 05:13

I\'m trying to play an MP3 file in C# using this guide: http://www.crowsprogramming.com/archives/58

And I\'m doing everything listed, but I still can\'t play any mus

相关标签:
7条回答
  • 2020-12-09 05:55

    There are a couple of things I would try:

    1) Fully-qualify the path to that .mp3 file, just in case. 2) Try a.Ctlcontrols.play(); instead.

    Also, I'm nearly certain that is a Windows (ActiveX control) that you are trying to load. It may need a windows context in order to load and work. I'm certain there is another way to play an .mp3, because I've used it before, but I couldn't find the code. It may have been part of the DirectX SDK though. Hope that helps.

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