我有一个mediaRecorder对象,必须将其转换为一组实际值才能在C语言中运行一个函数。我可以做些什么工具或功能来获得此阵列吗? 谢谢!
//save the record on the device
private void startRecording() {
mStartRecording = true;
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mFileName = mPathNameenter code here + "/" + System.currentTimeMillis() + ".3gp";
mRecorder.setOutputFile(mFileName);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
try {
Log.e("", "prepare() succeed");
mRecorder.prepare();
} catch (IOException e) {
Log.e("", "prepare() failed");
}
mRecorder.start();
}