From 7a7d535165b3f0f15d6a50647daf425802fa7a27 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Fri, 2 Jan 2015 19:43:12 +0100 Subject: [PATCH] reduced value buffer size to 2 seconds just enough to decode scottie DX from sync to sync: 5x 345.6ms color scans = 1728.0ms 2x 9.0ms sync pulses = 18.0ms 4x 1.5ms porches = 6.0ms 1752.0ms total --- app/src/main/java/xdsopl/robot36/ImageView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;