混合多个音频采样与C#单个文件 [英] Mixing multiple audio samples into single file with C#

查看:184
本文介绍了混合多个音频采样与C#单个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找能够创建一个音频文件库(MP3或WAV)。
n音讯脱颖而出,成为一个很好的候选人,但不知道它如何能做到具体是什么我所需要的。

I'm looking for a library capable of creating an audio file (mp3 or wav).
NAudio stands out as a good candidate, but not sure if and how it can do specifically what I need.

欲拌一定数目的音频样本的成单个文件,让它们与对照在每个样品的开始和结束定时渲染音频文件同时播放。

I want to mix a number of audio samples into a single file, have them play simultaneously with control over each sample's start and end timing when "rendering" the audio file.

这可能与n音讯?如果是这样,怎么样?你能指出一个好的教程?
此外,是否有任何其他建议的.NET音频库?

Is this possible with NAudio? If so, how? Can you point out a good tutorial?
Also, are there any other recommended .net audio libraries?

谢谢!

推荐答案

有在塞巴斯蒂安·格雷的博客。其中一个例子项目非常相似,你所描述的。

There are a few NAudio tutorials on Sebastian Gray's blog. One of the example projects is very similar to what you are describing.

我最后一次使用n音讯这不是很擅长写WAV文件 - 某些生成WAV文件都是有效的,但时间太短,缺少投入的最后几秒钟。这可能已经被固定了。我滚我自己的WAV作家来解决它。

Last time I used NAudio it was not very good at writing WAV files - some of the generated WAVs were valid but too short, missing the last few seconds of input. That may have been fixed by now. I rolled my own WAV writer to work around it.

这篇关于混合多个音频采样与C#单个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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