标签:
SystemSoundID pmph;
id
sndpath = [[
NSBundle
mainBundle]
pathForResource:@
"mySound"
ofType:@
"wav"
inDirectory:@
"/"
];
CFURLRef baseURL = (CFURLRef) [[
NSURL
alloc] initFileURLWithPath:sndpath];
AudioServicesCreateSystemSoundID (baseURL, &pmph);
AudioServicesPlaySystemSound(pmph);
[baseURL release];
标签:
原文地址:http://www.cnblogs.com/jzlblog/p/4383692.html