Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add a dash of GitHub Flavored Markdown to README #8

Merged
merged 1 commit into from

2 participants

@andrewsardone

GitHub Flavored Markdown allows declaring a language on fenced code
blocks for intelligent syntax highlighting.

This is a very minor change, but syntax highlighting can help call out what's
code and what are helpful comments
.

@andrewsardone andrewsardone Add a dash of GitHub Flavored Markdown to README
GitHub Flavored Markdown[1] allows declaring a language on fenced code
blocks for intelligent syntax highlighting.

[1]: http://github.github.com/github-flavored-markdown/
90d44a5
@alexbw alexbw merged commit 2eec320 into alexbw:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2012
  1. @andrewsardone

    Add a dash of GitHub Flavored Markdown to README

    andrewsardone authored
    GitHub Flavored Markdown[1] allows declaring a language on fenced code
    blocks for intelligent syntax highlighting.
    
    [1]: http://github.github.com/github-flavored-markdown/
This page is out of date. Refresh to see the latest.
Showing with 14 additions and 10 deletions.
  1. +14 −10 README.md
View
24 README.md
@@ -3,18 +3,22 @@
Really fast audio in iOS and Mac OS X using Audio Units is hard, and will leave you scarred and bloody. What used to take days can now be done with just a few lines of code.
### Getting Audio
- Novocaine *audioManager = [Novocaine audioManager];
- [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.
- }];
+``` objective-c
+Novocaine *audioManager = [Novocaine audioManager];
+[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.
+}];
+```
### Playing Audio
- Novocaine *audioManager = [Novocaine audioManager];
- [audioManager setOutputBlock:^(float *audioToPlay, UInt32 numSamples, UInt32 numChannels) {
- // All you have to do is put your audio into "audioToPlay".
- }];
+``` objective-c
+Novocaine *audioManager = [Novocaine audioManager];
+[audioManager setOutputBlock:^(float *audioToPlay, UInt32 numSamples, UInt32 numChannels) {
+ // All you have to do is put your audio into "audioToPlay".
+}];
+```
### Does anybody actually use it?
Yep. Novocaine is result of three years of work on the audio engine of Octave, Fourier and oScope, a powerful suite of audio analysis apps.
Something went wrong with that request. Please try again.