Merge pull request #129 from prophittcorey/prophittcorey/typo-fix

Fixed sound recorder example syntax error
This commit is contained in:
Mathieu Virbel 2014-09-29 21:31:06 +02:00
commit 910cac251f
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) {