Skip to content

Commit

Permalink
change buf size so it is a power of two
Browse files Browse the repository at this point in the history
  • Loading branch information
hungrymonkey committed Aug 9, 2017
1 parent bae3269 commit b669fc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private MicStreamPlugin(Activity activity){
mSampleRate = 48000;
mInBufferSize = AudioRecord.getMinBufferSize(
mSampleRate, AudioFormat.CHANNEL_IN_MONO, mFormat
)*3;
)*2;
//https://stackoverflow.com/questions/15804903/android-dev-audiorecord-without-blocking-or-threads
//require android 5
//2bytes in a short. So number of frames is totalbytes/2
Expand Down

0 comments on commit b669fc7

Please sign in to comment.