No, it is not using ARM_NB. Actually AudioFormat.ENCODING_DEFAULT =
0x1 which is being used. MediaRecorder.AudioEncoder.AMR_NB = 0x1 also.

On Feb 3, 11:24 pm, "draf...@gmail.com" <draf...@gmail.com> wrote:
> I currently use AudioTrack and AudioRecord to create a looping sound
> program and I was using raw PCM audio but I want to use AMR_NB audio
> so I set up the code as follows
>
> arec = new AudioRecord(MediaRecorder.AudioSource.MIC,
>                                                        11025,
>
> AudioFormat.CHANNEL_CONFIGURATION_MONO,
>
> MediaRecorder.AudioEncoder.AMR_NB,
>                                                        buffersize);
> atrack = new AudioTrack(AudioManager.STREAM_VOICE_CALL,
>                                                        11025,
>
> AudioFormat.CHANNEL_CONFIGURATION_MONO,
>
> MediaRecorder.AudioEncoder.AMR_NB,
>                                                        buffersize,
>
> AudioTrack.MODE_STREAM);
>
> The above code works fine but is passing
> MediaRecorder.AudioEncoder.AMR_NB in as the Audio Format valid or is
> it working but actually not being encoded as AMR_NB?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to