使用C#进行声音合成 [英] Sound synthesis with C#

查看:541
本文介绍了使用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上查看 NAudio

Check out NAudio on codeplex.


NAudio是一个开源.NET音频和MIDI库,其中包含数十个有用的音频相关类,旨在加速.NET中音频相关实用程序的开发。自2001年以来,它一直在开发中,并且已成长为包括多种功能。虽然库的某些部分相对较新且不完整,但更成熟的功能已经过广泛的测试,可以快速用于向现有.NET应用程序添加音频功能。

NAudio is an open source .NET audio and MIDI library, containing dozens of useful audio related classes intended to speed development of audio related utilities in .NET. It has been in development since 2001 and has grown to include a wide variety of features. While some parts of the library are relatively new and incomplete, the more mature features have undergone extensive testing and can be quickly used to add audio capabilities to an existing .NET application.

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

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

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

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