[objective-c]音
音
//ヘッダーファイル #import <AudioToolbox/AudioToolbox.h> SystemSoundID soundID0;
//初期化 NSString *path; NSURL *url; path= [[NSBundle mainBundle] pathForResource:@"move" ofType:@"mp3"]; url= [NSURL fileURLWithPath:path]; AudioServicesCreateSystemSoundID((CFURLRef)url, &soundID0); //再生 AudioServicesPlaySystemSound(soundID0);