我使用MediaRecorder录音,会出异常:
java.lang.RuntimeException: setAudioSource failed.下面是部分代码
.......
m_MyRecorder = new MediaRecorder();
m_MyRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);//这句抛出异常
m_MyRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
m_MyRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
m_MyRecorder.setOutputFile(RecordFile.getAbsolutePath());
m_MyRecorder.prepare();
m_MyRecorder.start();
......
请高手指点
java.lang.RuntimeException: setAudioSource failed.下面是部分代码
.......
m_MyRecorder = new MediaRecorder();
m_MyRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);//这句抛出异常
m_MyRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
m_MyRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
m_MyRecorder.setOutputFile(RecordFile.getAbsolutePath());
m_MyRecorder.prepare();
m_MyRecorder.start();
......
请高手指点
我的 开发板,模拟器,平板电脑(买的产品) 上,所有的 RecordUI 运行时,都出现如下错误码:"RecordUI(进程:record.com)意外停止,请重试"不知是何原因?