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 <[email protected]> wrote:
> jac:
> I found this:android.media.MediaRecorder.AudioEncoder.AMR_NB
> is this what you want?
>
> tainy
>
> On 4月22日, 上午4时53分, j <[email protected]> wrote:
>
> > I would like to use the new AudioRecord class to record inAMR-NB
> > format.  But android.media.AudioFormat provides only 8-bit PCM and 16-
> > bit PCM options, noAMR-NBoption for some reason.
>
> > I have also looked into MediaRecorder class.  My understanding is that
> > while MediaRecorder supprots recording toAMR-NBformat, MediaRecorder
> > can only write to a file (not to a network stream).   It seems I need
> > to use the AudioRecord class but it doesn't seem to supportAMR-NB.
>
> > Please shed some light!  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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to