2011-10-05 5 views
0

나는 3 독특한 사운드를 재생한다 응용 프로그램을하고 난 내 viewDidLoad에 너무로 정의 :소리가 재생되지 않습니까?

AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"2357_02" ofType:@"m4a"]], &addedSound); 
AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"2357_01" ofType:@"m4a"]], &updatedSound); 
AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"notifier_12" ofType:@"m4a"]], &notFoundSound); 

그리고 나는 그들과 같이 재생 큐 :

AudioServicesPlaySystemSound(addedSound); 

그들은 시뮬레이터에서 재생 하지만 ipad에? Build Bundle Resources의 빌드 단계에서 필자는 목록에 나열된 것을 본다. 그래서 필자는 그것들을 내 애플 리케이션의 일부로 만들어야한다고 생각한다. 여기서 나는 무엇을 놓치고 있는가?

+0

이 명백한 상태로 싫어하지만 장치가 음소거로 설정되어 있지 확실 해요? 어리석은 일이지만 한 번 확인하고 몇 분 동안 내 머리를 두드리는 것을 잊지 마십시오. – isaac

+0

Dupe? 소리가 너무 길어요 : http://stackoverflow.com/questions/2014578/sound-on-simulator-but-not-device –

답변

관련 문제