Skip to content

Instantly share code, notes, and snippets.

@TooTallNate
Created April 7, 2011 03:29
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 TooTallNate/906983 to your computer and use it in GitHub Desktop.
Save TooTallNate/906983 to your computer and use it in GitHub Desktop.
A "Hello World" to doing a vibration in pure C, on iOS.
// To compile:
// gcc -framework AudioToolbox iOS-Vibrate.c -o iOS-Vibrate
#include <AudioToolbox/AudioServices.h>
int main() {
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment