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