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