//-------------对外接口------------------ public void initWithNew( string strAudioPath, string outPutPath, ProcessCb cb = null, CallBackZero finishCb = null) { /* * 如果文件夹已经存在则删除 */ if (Directory.Exists(strOutPutPath_ + "\\" + FLODER_NAME_FIRST_CUT)) { Directory.Delete(strOutPutPath_ + "\\" + FLODER_NAME_FIRST_CUT, true); } /* * 初始化 */ strAudioPath_ = strAudioPath; strOutPutPath_ = outPutPath; processCb_ = cb; finishCb_ = finishCb; listAudioParts_ = new List <AudioPart>(); initFolder(); initBuffer(strAudioPath); /* * 大规模工作集合 */ isProcessing_ = true; initListAudioPart(buffer_, onInitListAudioPartCallBack); }
public void Dispose() { corCut = null; corTrans = null; nowProcess_ = 0; finishCb_ = null; processCb_ = null; callBackTime = 0; AudioIndex = 0; buffer_ = null; listAudioParts_.Clear(); }