Skip to content

Instantly share code, notes, and snippets.

View ghvillasboas's full-sized avatar

George Villasboas ghvillasboas

  • United Kingdom
View GitHub Profile
@ghvillasboas
ghvillasboas / afconvert
Created August 19, 2014 13:42
Convert WAV to Caf for iOS Audio Playback using afconvert
afconvert -f caff -d LEI16@44100 -c 1 file.wav file.caf
@ghvillasboas
ghvillasboas / shortAudioPlayback
Last active August 29, 2015 14:05
iOS Audio Playback
// vibrate
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
// play short sound (< 30s)
SystemSoundID beep;
// Create the sound ID
NSString *path = [[NSBundle mainBundle] pathForResource:@"sound" ofType:@"caf"];
NSURL *url = [NSURL fileURLWithPath:path];
AudioServicesCreateSystemSoundID((__bridge CFURLRef)url, &beep);

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@ghvillasboas
ghvillasboas / gist:4976eb8a4cf84c474464
Created June 23, 2014 20:49
WWDC 2014 - Talks by Evangelists
WWDC 2014 - Talks by Evangelists
============================================================
============================================================
Jake Behrens - App Frameworks Evangelists
behrens@apple.com/Twitter: @Behrens
============================================================
- A Look Inside Presentation Controllers
- Accessibility on iOS
- Accessibility on OS X