[android-developers] Re: 1.5 SDK Media Question: why doesn't android.media.AudioFormat have option for AMR-NB?

2009-04-22 Thread tainy
jac: I found this:android.media.MediaRecorder.AudioEncoder.AMR_NB is this what you want? tainy On 4月22日, 上午4时53分, j jac...@gmail.com wrote: I would like to use the new AudioRecord class to record in AMR-NB format. But android.media.AudioFormat provides only 8-bit PCM and 16- bit PCM

[android-developers] Re: 1.5 SDK Media Question: why doesn't android.media.AudioFormat have option for AMR-NB?

2009-04-22 Thread j
tainy, I am aware of that. The problem is MediaRecorder will only write to a file. Only AudioRecord can write to memory. On Apr 22, 12:30 am, tainy tainy.zh...@gmail.com wrote: jac: I found this:android.media.MediaRecorder.AudioEncoder.AMR_NB is this what you want? tainy On 4月22日,

[android-developers] Re: 1.5 SDK Media Question: why doesn't android.media.AudioFormat have option for AMR-NB?

2009-04-22 Thread Dave Sparks
No - telephony audio is handled entirely in the baseband processor. On Apr 21, 10:14 pm, j jac...@gmail.com wrote: Thanks. One more question.  Doesn't the bundled Android phone/dialer app uses OpenCORE to encode and stream audio when user places a normal phone call?  How is that handled?

[android-developers] Re: 1.5 SDK Media Question: why doesn't android.media.AudioFormat have option for AMR-NB?

2009-04-21 Thread Dave Sparks
That is correct. The encoders are only available through the OpenCORE author engine which does not currently supporting a streaming interface. On Apr 21, 1:53 pm, j jac...@gmail.com wrote: I would like to use the new AudioRecord class to record in AMR-NB format.  But android.media.AudioFormat

[android-developers] Re: 1.5 SDK Media Question: why doesn't android.media.AudioFormat have option for AMR-NB?

2009-04-21 Thread j
Thanks. One more question. Doesn't the bundled Android phone/dialer app uses OpenCORE to encode and stream audio when user places a normal phone call? How is that handled? On Apr 21, 5:24 pm, Dave Sparks davidspa...@android.com wrote: That is correct. The encoders are only available through