From cdbc96b268f1fa43a8fa8dad506f10b4c88b2ab4 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Wed, 23 May 2012 17:20:02 -0700 Subject: [PATCH] Start with larger bytearrayoutputstream, fixed a string --- android-aac-enc/src/com/todoroo/aacenc/AACRecorder.java | 2 +- .../com/todoroo/astrid/files/AACRecordingActivity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android-aac-enc/src/com/todoroo/aacenc/AACRecorder.java b/android-aac-enc/src/com/todoroo/aacenc/AACRecorder.java index b7ac2a27d..f476f7aa6 100644 --- a/android-aac-enc/src/com/todoroo/aacenc/AACRecorder.java +++ b/android-aac-enc/src/com/todoroo/aacenc/AACRecorder.java @@ -37,7 +37,7 @@ public class AACRecorder { private Thread readerThread = new Thread() { private byte[] readBuffer = new byte[NOTIFICATION_PERIOD * 2]; public void run() { - ByteArrayOutputStream baos = new ByteArrayOutputStream(); + ByteArrayOutputStream baos = new ByteArrayOutputStream(SAMPLE_RATE * 2); int bytesRead = 0; while(recording) { bytesRead = audioRecord.read(readBuffer, 0, readBuffer.length); diff --git a/astrid/plugin-src/com/todoroo/astrid/files/AACRecordingActivity.java b/astrid/plugin-src/com/todoroo/astrid/files/AACRecordingActivity.java index 97fa0a0d3..ee179366c 100644 --- a/astrid/plugin-src/com/todoroo/astrid/files/AACRecordingActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/files/AACRecordingActivity.java @@ -74,7 +74,7 @@ public class AACRecordingActivity extends Activity implements AACRecorderCallbac private void stopRecording() { recorder.stopRecording(); - pd = DialogUtilities.progressDialog(this, getString(R.string.audio_err_encoding)); + pd = DialogUtilities.progressDialog(this, getString(R.string.audio_encoding)); pd.show(); }