¡@

Home 

2014/10/16 ¤W¤È 08:10:46

android Programming Glossary: buffersizebytes

android, AudioRecord.read() --> bufferoverflow, how to handle the buffer?

http://stackoverflow.com/questions/5218856/android-audiorecord-read-bufferoverflow-how-to-handle-the-buffer

audioRecord null public int mSamplesRead public int buffersizebytes public int buflen public int channelConfiguration AudioFormat.CHANNEL_CONFIGURATION_MONO.. mSamplesRead audioRecord.read buffer 0 buffersizebytes if readerT.isAlive readerT.start Log.i MutantAudioRecorder.. set to rec @Override protected void onPreExecute buffersizebytes AudioRecord.getMinBufferSize SAMPLESPERSEC channelConfiguration..

android, AudioRecord.read() --> bufferoverflow, how to handle the buffer?

http://stackoverflow.com/questions/5218856/android-audiorecord-read-bufferoverflow-how-to-handle-the-buffer

Void Void private boolean isRecording false public AudioRecord audioRecord null public int mSamplesRead public int buffersizebytes public int buflen public int channelConfiguration AudioFormat.CHANNEL_CONFIGURATION_MONO public int audioEncoding AudioFormat.ENCODING_PCM_16BIT.. Void doInBackground Void... params while isRecording audioRecord.startRecording mSamplesRead audioRecord.read buffer 0 buffersizebytes if readerT.isAlive readerT.start Log.i MutantAudioRecorder doInBackground isRecoding readerT.stop return null Thread readerT.. rec Log.i MutantAudioRecorder setRecording isRecoding set to rec @Override protected void onPreExecute buffersizebytes AudioRecord.getMinBufferSize SAMPLESPERSEC channelConfiguration audioEncoding buffer new short buffersizebytes buflen buffersizebytes..