Fixed sound recorder example syntax error

This commit is contained in:
Corey Prophitt 2014-08-30 00:53:12 -07:00
parent 7826ca53d7
commit f9e0a87e97
1 changed files with 3 additions and 3 deletions

View File

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