From f9e0a87e970a7b4850bfe184b021ae2d18ecf84b Mon Sep 17 00:00:00 2001 From: Corey Prophitt Date: Sat, 30 Aug 2014 00:53:12 -0700 Subject: [PATCH] Fixed sound recorder example syntax error --- docs/source/android.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/android.rst b/docs/source/android.rst index aeff0c1..8da6f1b 100644 --- a/docs/source/android.rst +++ b/docs/source/android.rst @@ -45,9 +45,9 @@ Let's do it with Pyjnius:: # create out recorder mRecorder = MediaRecorder() mRecorder.setAudioSource(AudioSource.MIC) - mRecorder.setOutputFormat(OutputFormat.THREE_GPP) + mRecorder.setOutputFormat(OutputFormat.THREE_GPP) mRecorder.setOutputFile('/sdcard/testrecorder.3gp') - mRecorder.setAudioEncoder(AudioEncoder.ARM_NB) + mRecorder.setAudioEncoder(AudioEncoder.AMR_NB) mRecorder.prepare() # record 5 seconds @@ -151,7 +151,7 @@ everything needed for accessing the accelerometer:: // Contain the last event we got from the listener static public SensorEvent lastEvent = null; - + // Define a new listener static class AccelListener implements SensorEventListener { public void onSensorChanged(SensorEvent ev) {