1000):resA.length);
		resB=resB.subarray(Math.round(subA*sampleRate/1000),subB?Math.round(subB*sampleRate/1000):resB.length);
	};
	var size=resA.length;
	var duration=Math.floor(size/sampleRate*1000);
	
	//编码数据 https://github.com/mattdiamond/Recorderjs https://www.cnblogs.com/blqw/p/3782420.html https://www.cnblogs.com/xiaoqi/p/6993912.html
	var dataLength=size*(bitRateNew/8)*numChannelsNew;
	var buffer=new ArrayBuffer(44+dataLength);
	var data=new DataView(buffer);
	
	var offset=0;
	var