本文介绍了使用C#进行声音合成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在C#中生成声音?我的意思是不仅发出哔哔声或打开并播放波形文件。我的意思是使用不同种类的波(正弦波,锯齿等)及其选项(频率,振幅等)构建信号。

Is there some possibility to generate sounds in C#? I mean not just beep or open and play wave-file. I mean build the signal using different kinds of waves (sin, saw, etc.) and their options (frequencies, amplitudes, etc.)

推荐答案

在codeplex上查看。

Check out NAudio on codeplex.

您可以直接使用该库,也可以查看其源代码以了解底层的工作原理。

You could either use the library directly, or check out its source code to find out how it works at a low level.

这篇关于使用C#进行声音合成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 15:24