Skip to content
Browse files

Merge branch 'master' of github:bmeike/ProgrammingAndroidExamples

  • Loading branch information...
2 parents 5e5d150 + 8680e95 commit c81b2a7d4f3a8e18efe621319436747887d24e8a @bmeike bmeike committed Aug 10, 2011
View
3 14/AudioPlayer/AndroidManifest.xml
@@ -26,6 +26,7 @@
<uses-permission android:name="android.permission.RECORD_VIDEO"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CAMERA"/>
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-sdk android:targetSdkVersion="9"></uses-sdk>
-</manifest>
+</manifest>
View
5 14/AudioPlayer/README.txt
@@ -1,2 +1,5 @@
This example must be run on actual hardware (not an emulator)
-as this contains hardware specific code.
+as this contains hardware specific code.
+
+
+(This was tested on a Nexus One and Nexus S phones)
View
2 14/AudioPlayer/src/com/oreilly/demo/pa/ch14/AudioPlayerWAudioTrack.java
@@ -134,7 +134,7 @@ private void initializeAudioTrack() {
audiotrack = new AudioTrack(
AudioManager.STREAM_MUSIC, // stream type
44100, // frequency
- AudioFormat.CHANNEL_IN_MONO, // channel config.. mono, stereo, etc
+ AudioFormat.CHANNEL_CONFIGURATION_MONO, // channel config.. mono, stereo, etc
AudioFormat.ENCODING_PCM_16BIT, // audio encoding
audio.length, // length
AudioTrack.MODE_STREAM // mode
View
2 14/AudioPlayer/src/com/oreilly/demo/pa/ch14/AudioRecorderWAudioRecord.java
@@ -87,7 +87,7 @@ private void recordOrStop() {
recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, // source to record from
44100,// frequency
- AudioFormat.CHANNEL_IN_MONO,// channel config.. mono, stereo, etc
+ AudioFormat.CHANNEL_CONFIGURATION_MONO,// channel config.. mono, stereo, etc
AudioFormat.ENCODING_PCM_16BIT,// audio encoding
buffer.length// buffer size
);
View
4 16/SensorDemos/README.txt
@@ -1,2 +1,4 @@
This example must be run on actual hardware (not an emulator)
-as this contains hardware specific code.
+as this contains hardware specific code.
+
+(This was tested on a Nexus S phone)
View
3 18/NDKDemo/README.txt
@@ -1,2 +1,5 @@
This example must be run on actual hardware (not an emulator)
as this contains hardware specific code.
+
+
+(This was tested on a Nexus One and Nexus S phones)

0 comments on commit c81b2a7

Please sign in to comment.
Something went wrong with that request. Please try again.