AudioRecord recordInstance = new AudioRecord(
MediaRecorder.AudioSource.MIC, this.getFrequency(), this
.getChannelConfiguration(), this.getAudioEncoding(),
bufferSize);
short[] tempBuffer = new short[bufferSize];
recordInstance.startRecording();
E/debug ( 2365): java.lang.IllegalStateException: startRecording() called on
an uninitialized AudioRecord.
require permission : android.permission.RECORD_AUDIO
MediaRecorder.AudioSource.MIC, this.getFrequency(), this
.getChannelConfiguration(), this.getAudioEncoding(),
bufferSize);
short[] tempBuffer = new short[bufferSize];
recordInstance.startRecording();
E/debug ( 2365): java.lang.IllegalStateException: startRecording() called on
an uninitialized AudioRecord.
require permission : android.permission.RECORD_AUDIO
沒有留言:
張貼留言