diff --git a/app/src/main/java/xdsopl/robot36/ImageView.java b/app/src/main/java/xdsopl/robot36/ImageView.java index e392316..4757471 100644 --- a/app/src/main/java/xdsopl/robot36/ImageView.java +++ b/app/src/main/java/xdsopl/robot36/ImageView.java @@ -103,7 +103,7 @@ public class ImageView extends SurfaceView implements SurfaceHolder.Callback { audio = new AudioRecord(audioSource, sampleRate, channelConfig, audioFormat, audioBuffer.length * 2); audio.startRecording(); - int minValueBufferLength = 3 * sampleRate; + int minValueBufferLength = 2 * sampleRate; int valueBufferLength = Integer.highestOneBit(minValueBufferLength); if (minValueBufferLength > valueBufferLength) valueBufferLength <<= 1;