混合或合并一些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/WaveFormat/一>
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.