Skip to content

Commit

Permalink
Merge pull request kivy#129 from prophittcorey/prophittcorey/typo-fix
Browse files Browse the repository at this point in the history
Fixed sound recorder example syntax error
  • Loading branch information
tito committed Sep 29, 2014
2 parents 9f9d616 + f9e0a87 commit 910cac2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/android.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 910cac2

Please sign in to comment.