混合或合并一些wav文件 [英] Mixing or Combine some wav files

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

问题描述

帮助我,请。我有3个wav文件。 1.wav文件播放0-10秒,2.wav文件3-7秒播放,并3.wav文件从5播放 - 8.25秒。曲目同时播放。

Help me, please. I have 3 wav file. 1.wav file plays with 0-10 seconds, 2.wav file playing with 3-7 second, and 3.wav file playing from 5 - 8.25 second. Tracks are playing simultaneously.

如何混合或C#$ C C $它们合并成一个文件,以获得10秒的wav文件的长度?

How to mixing or combine in C# code them into one file to get a wav file length of 10 seconds?

目标平台的Windows Phone或Windows 8 Store应用,而无需使用第三方库。 所有的文件是相同的:16位,44100,立体声

Target platform Windows Phone or Windows 8 Store App without the use of third-party libraries. All files are identical: 16 bit, 44100, stereo.

如何搭配文件正确定位在C#code中的时间?

How to mix files to correctly position the time in c# code?

推荐答案

有几种方法可以做到这一点。

There are several ways to do it.

我的建议是写能读,写的波形文件,因为不像其他一些音乐文件,波形文件的主要信息是存储在其标题中的自定义波形类。

My recommendation is to write a custom wave class which can read and write wave files, because unlike some other music files, the main info of a wave file is stored in its header.

下面是详细的波形文件格式规范。 https://ccrma​​.stanford.edu/courses/422/projects/WaveFor​​mat/

Here's the detailed wave file format specification. https://ccrma.stanford.edu/courses/422/projects/WaveFormat/

另一种方式来绕过痛苦的解码使用第三方库,如 n音讯

Another way to bypass the painful decoding is using a third party library, such as NAudio.

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

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