Hello,

I am using  AudioRecord to record an audio via my NexusOne phone. The
audio is recorded as a .pcm file on my sdcard. However, when I play it
back, all I hear is a distorted noise. I've tried playing back the
file using my code (uses AudioTrack) and also using third party apps.
I even converted file format to .mp3 = and find the same issue.

A snippet of my code is as follows:

AudioRecord recordInstance = new AudioRecord(
                               MediaRecorder.AudioSource.MIC, 11025,
AudioFormat.CHANNEL_IN_MONO,
      AudioFormat.ENCODING_PCM_16BIT;
                               bufferSize);
               short[] tempBuffer = new short[bufferSize];
               recordInstance.startRecording();

Any help is appreciated.

Thanks,
Santhoshi

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