i also found this matter,but when i delete "(int)buffer.frameCount ==
inFrameCount" in AudioFlinger.cpp.I can not recording the audio too. maybe
the matter is the below log:  "D/AudioHardwareALSA(   49 Unable to set
channel count to ". who know why?
i just use the alsa_sound, but i do not create asound.conf. but i can
playback well in my device. may i create the asound.conf.who to create ?

2009/4/9 forest <[email protected]>

>
> i know.
>
> because add "&& (int)buffer.frameCount == inFrameCount"
> in frameworks/base/libs/audioflinger/AudioFlinger.cpp:2462
>
> delete this is ok,but don't know why add this?
>
> On 4月3日, 下午5时42分, forest <[email protected]> wrote:
> > the newest version can't record voice
> > log:
> > I/AudioHardwareALSA(   49): Initialized ALSA CAPTURE device
> > AndroidRecord_Microphone
> > D/AudioHardwareALSA(   49): Set CAPTURE PCM format to S16_LE (Signed
> > 16 bit Little Endian)
> > D/AudioHardwareALSA(   49): Using 1 channel for CAPTURE.
> > D/AudioHardwareALSA(   49): Set CAPTURE sample rate to 8000 HZ
> > W/AudioFlinger(   49): AudioRecordThread: buffer overflow
> > W/AudioRecord(   49): obtainBuffer timed out (is the CPU pegged?)
> > user=00000fa0, server=00000fa0
> > W/AudioRecord(   49): obtainBuffer timed out (is the CPU pegged?)
> > user=00000fa0, server=00000fa0
> > D/dalvikvm(  109): GC freed 388 objects / 16736 bytes in 128ms
> > W/AudioRecord(   49): obtainBuffer timed out (is the CPU pegged?)
> > user=00000fa0, server=00000fa0
> > W/AudioRecord(   49): obtainBuffer timed out (is the CPU pegged?)
> > user=00000fa0, server=00000fa0
> > W/AudioRecord(   49): obtainBuffer timed out (is the CPU pegged?)
> > user=00000fa0, server=00000fa0
> > W/AudioRecord(   49): obtainBuffer timed out (is the CPU pegged?)
> > user=00000fa0, server=00000fa0
> > W/AudioRecord(   49): obtainBuffer timed out (is the CPU pegged?)
> > user=00000fa0, server=00000fa0
> > W/AudioRecord(   49): obtainBuffer timed out (is the CPU pegged?)
> > user=00000fa0, server=00000fa0
> > W/AudioRecord(   49): obtainBuffer timed out (is the CPU pegged?)
> > user=00000fa0, server=00000fa0
> > W/AudioRecord(   49): obtainBuffer timed out (is the CPU pegged?)
> > user=00000fa0, server=00000fa0
> > ......
> >
> > who know why,thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to