Skip to content

Instantly share code, notes, and snippets.

@jacksonfdam
Created May 25, 2012 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacksonfdam/2790557 to your computer and use it in GitHub Desktop.
Save jacksonfdam/2790557 to your computer and use it in GitHub Desktop.
Executar som
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"Internet-Jen-1117" ofType:@"wav"];
SystemSoundID soundID;
AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath: soundPath], &soundID);
AudioServicesPlaySystemSound (soundID);
[soundPath release];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment