Samsung devices (all of them) have many bugs related to audio API. In our application we've handled this by applying specific solutions to known device models - you will have to investigate and find workarounds for that.
On Sep 26, 4:05 am, Steve Hugg <[email protected]> wrote: > We have been getting reports of audio recording not working on Samsung > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

