如果我在smarphone(Android 6.0.1.Marshmallow)上运行以下代码:
$(".home-slider-t").slick({
dots: false,
arrows: true,
infinite: false,
speed: 2500,
slidesToShow: 1,
autoplay: true,
fade: true,
autoplaySpeed: 6000
});
旨在记录25秒的单声道16bps wav文件,状态值显示值0,这与AudioRecord recorder = new AudioRecord(
MediaRecorder.AudioSource.MIC,
44100,//sample rate
AudioFormat.CHANNEL_IN_MONO,
AudioFormat.ENCODING_PCM_16BIT,
bufferSize//25*44100*2*1
);
int state = recorder.getState();
(后者又为1)不同。
对于较小长度的录制声音,例如20秒,它运作正常...