/ Published in: Objective C
Expand |
Embed | Plain Text
//To load sound file. //declare a system sound id SystemSoundID soundID; //Get a URL for the sound file //Use audio sevices to create the sound AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID); //Use audio services to play the sound AudioServicesPlaySystemSound(soundID); }
You need to login to post a comment.
