.h文件
@property (nonatomic, retain) SystemSoundID _mdSoundID;
要求
1、 播放的时间不能超过30秒
2、数据必须是 PCM或者IMA4流格式
NSString *soundFilePath = [[NSBundlemainBundle] pathForResource: @"seal" ofType: @"mp3"];
CFURLRef thesoundURL = (CFURLRef) [NSURLfileURLWithPath: soundFilePath];
AudioServicesCreateSystemSoundID(thesoundURL, &_mdSoundID);
音频调用AudioServicesPlaySystemSound(_mdSoundID);
ps: 震动调用 AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);