after i upgraded SDK from 1.5r2 to 1.6, i found a serious problem:

1). on emulator 1.6, my app using AudioRecord records at a
significantly "faster" pace than on 1.5 emulator.

for example, after 30 seconds of audio recording (8kHz/mono) on 1.6
emulator, my app records 340,800 samples, which is equivalent to
348000/8000 = 42 secs of voice. playing back these samples at 8kHz
sounds obviously like slowed down "spacewalks" on the moon.

originally on 1.5 emulator, the same app recorded correctly 240,000
samples.

2). on my G1 phone, the same app built with SDK 1.6  records and plays
back audio frames correctly.

originally with SDK 1.5, the same app code always lost 5-10 secs of
voice frames after 30secs of recording, because the recorder seemed to
run out of G1 cpu power, which made AudioRecord.read() unable to read
off recorded frames *in time*.

though my app seems to run on G1 phone with my satisfaction, i am
confused with the weird and inconsistent behavior of AudioRecord class
described above.

could any Android fork or anyone who is knowledgeable of this issue
shed some light to me, telling how i can let AudioRecord sample voice
frames at identical paces on G1 and emulator?

thanks a lot in advance !!!!

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