我正在將兩個文件的原始音頻字節寫入一個新的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