我正在将两个文件的原始音频字节写入一个新的wav文件中以合并这两个文件。创建的结果文件具有两个音频剪辑的内容,但文件中也有很多噪音。iPhone - 音频文件中有很多噪音
有人能指点我一个很好的例子,它展示了如何将原始音频字节写入文件?这里是我所遵循的基本逻辑
SInt32 leftSample1 = ReadSampleFromFile1(music_iter1);
leftSample1 = (SInt32)((float) leftSample1 * 0.7071); //to avoid clipping
SInt32 leftStereoSample2 = ReadLeftSample(music_iter2);
leftStereoSample2 += leftSample1;
if (leftStereoSample2 > 32767)
leftStereoSample2 = 32767;
else if (leftStereoSample2 < -32768
leftStereoSample2 = -32768;
// write leftStereoSample2 to the file
//do the same as left sample to right sample also
++music_iter2;
++music_iter1;
谢谢。
我记录了一个.wav文件,我想从该.wav文件中删除背景噪音。我该怎么做?请帮助我..挣扎一个星期。 – Warrior 2010-11-12 11:18:08
我不想去除背景噪音。我可以在iPhone中禁用噪音消除功能吗? – 2014-08-20 05:49:36