播放声音与管理code [英] Play sounds with managed code

查看:165
本文介绍了播放声音与管理code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图建立一个完善的图书馆作为一个学习项目。我得到的阅读和分析,我只是不明白如何真正让声音出来的扬声器。我环顾四周,很长一段时间了,但我从来没有找到的东西,解释这一点。这似乎是微不足道的。我失去了一些东西呢?我该怎么做这在C#?

I've been trying to create a sound library as a learning project. I get the reading and parsing, I just don't understand how to actually make sound come out of the speaker. I've looked around for quite some time now, but I could never find something that explains this. It seems to be trivial. Am I missing something here? How do I do this in C#?

推荐答案

我会尝试 NBass 。它是免费的,开源的,可以窥见他们是如何做到这一点的细节。

I would try NBass. It's free and open source, you can peek how they do it in detail.

您还可以使用微软媒体播放器的SDK,如果preFER,或WPF,媒体层,这可能仅仅是相同的,我猜。

You can also use the Microsoft Media Player SDK, if you prefer, or the media layer from WPF, which is probably merely the same I guess.

如果你想输出的东西,然后直接在托管DirectX可以帮助你,看看 DirectX.AudioVideoPlayback

If you want to output things directly then the managed DirectX can help you out, have a look at DirectX.AudioVideoPlayback.

这篇关于播放声音与管理code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆