Start with larger bytearrayoutputstream, fixed a string

pull/14/head
Sam Bosley 12 years ago
parent 565894f661
commit cdbc96b268

@ -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);

@ -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();
}

Loading…
Cancel
Save