有没有免费的库可以在.NET中播放各种声音格式?

时间:2022-07-21 22:48:25

I would like to play sound in my application, as far as I know, .net can only handle wav files by default. Is there any sound playing library which I can use? I know about bass but it is not free for commercial use. Any pointers would be helpful.

我想在我的应用程序中播放声音,据我所知,.net默认只能处理wav文件。有没有可以使用的声音播放库?我知道低音但它不能免费用于商业用途。任何指针都会有所帮助。

2 个解决方案

#1


You can use DirectShow.NET, its open source and will allow you to play and audio file that you have a codec for.

您可以使用DirectShow.NET,它的开源,并允许您播放您拥有编解码器的音频文件。

#2


The easiest way would be toembed the Windows Media Player, as is done here. Is there a specific format you'd like to support?

最简单的方法就是在这里完成Windows Media Player。是否有您希望支持的特定格式?

#1


You can use DirectShow.NET, its open source and will allow you to play and audio file that you have a codec for.

您可以使用DirectShow.NET,它的开源,并允许您播放您拥有编解码器的音频文件。

#2


The easiest way would be toembed the Windows Media Player, as is done here. Is there a specific format you'd like to support?

最简单的方法就是在这里完成Windows Media Player。是否有您希望支持的特定格式?