You might also have a look at this thread:

http://groups.google.com/group/android-developers/browse_thread/thread/a37d61d2135a924/4efd4f33fb6937ab?q=record+problem+LG+Ally#4efd4f33fb6937ab

Which explains a way to record audio on mayn devices including the LG
Ally

Bryan

On Sep 26, 8:05 pm, dan raaka <[email protected]> wrote:
> you should first check if the particular combination is supported or NOT.
>
> Raun "AudioCaps" on this device build and see if the issue causing
> samplerate/encoding combination is supported or NOT.
>
> -Dan
>
> On Sun, Sep 26, 2010 at 2:29 AM, Omer Gilad <[email protected]> wrote:
> > 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]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
>

-- 
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

Reply via email to