Skip to content
Browse files

Change ordering of function calls in quick-start code

  • Loading branch information...
1 parent 42bcad2 commit 80bc9c1f9e57572842f7a96bf88fbd99e84c528f @ndonald2 ndonald2 committed Jun 28, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
3 README.md
@@ -5,12 +5,12 @@ Really fast audio in iOS and Mac OS X using Audio Units is hard, and will leave
### Getting Audio
``` objective-c
Novocaine *audioManager = [Novocaine audioManager];
-[audioManager play];
[audioManager setInputBlock:^(float *newAudio, UInt32 numSamples, UInt32 numChannels) {
// Now you're getting audio from the microphone every 20 milliseconds or so. How's that for easy?
// Audio comes in interleaved, so,
// if numChannels = 2, newAudio[0] is channel 1, newAudio[1] is channel 2, newAudio[2] is channel 1, etc.
}];
+[audioManager play];
```
### Playing Audio
@@ -19,6 +19,7 @@ Novocaine *audioManager = [Novocaine audioManager];
[audioManager setOutputBlock:^(float *audioToPlay, UInt32 numSamples, UInt32 numChannels) {
// All you have to do is put your audio into "audioToPlay".
}];
+[audioManager play];
```
### Does anybody actually use it?

0 comments on commit 80bc9c1

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