合并WAV文件在C# [英] Merge WAV files in C#

查看:217
本文介绍了合并WAV文件在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我要让/合并/合并成一个文件与两声道2 wav文件。

I have 2 wav files that I want to make/combine/merge into one file with the two sound tracks.

是否有该任务或.NET可我可以在索姆天才方式使用,使这个任务可能一些内置客栈命令的API?

Is there any api for that task or some built inn commands in .NET that can I can use in som genius way to make this task possible?

非常感谢您的帮助。 :)

Many thanks for the help. :)

推荐答案

如果我没有记错的话,你可以从第二个文件的字节数追加到第一年底。如果有任何头数据,你要排除(见这里

If I'm not mistaken, you can just append the bytes from the second file to the end of the first. If there is any header data, you'll want to exclude that (see here)

注意,您可能会听到咔嗒声或者两个片段之间流行,因为不会有融合。你也许可以解决这个问题因衰落(逐步减少在过去的几年毫秒中心值的值)。

Be advised that you may hear a click or pop between the two clips, as there will be no blending. You could probably get around this by fading (gradually reducing the values for the last few ms to the center value).

这篇关于合并WAV文件在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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