Moment phones on 2.1-update1.
int bufferSize = AudioRecord.getMinBufferSize(sampleRate,
AudioFormat.CHANNEL_IN_MONO,
AudioFormat.ENCODING_PCM_16BIT);
this.audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC,
sampleRate,
AudioFormat.CHANNEL_IN_MONO,
AudioFormat.ENCODING_PCM_16BIT, bufferSize);
generates these logs:
I/AudioPolicyManager( 1889): getInput() inputSource 1, samplingRate
16000, format 1, channels 10, acoustics 0
W/AudioHardwareALSA( 1889): openInputStream : mInput already exists!!
E/AudioRecord( 2618): Could not get audio input for record source 1
E/AudioRecord-JNI( 2618): Error creating AudioRecord instance:
initialization check failed.
E/AudioRecord-Java( 2618): [ android.media.AudioRecord ] Error code
-20 when initializing native AudioRecord object.
I can't find the "mInput already exists" anywhere in the source base,
could this perhaps be an error message included by the OEM?
Thanks!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment