Can't tell from what you've written here. Are you sure that bufferSize is big enough? You might want to use the getMinBufferSize() method to be more sure. Can you show how you do the reading of the audio? Can you show how you write it out to the file? Are you reading a smaller sample buffer size than bufferSize in the read call? Are you checking getRecordingState()?
- dave On Oct 4, 6:28 pm, Santhoshi <[email protected]> wrote: > 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

