2013-06-16 4 views

답변

1

를 사용하여 오디오 도구 상자 :

#include <AudioToolbox/AudioToolbox.h> 

은 다음과 같이 오디오 리소스를로드

NSURL* soundUrl = [[NSBundle mainBundle] URLForResource: @"emailsent" withExtension: @"aif"]; 

AudioServicesCreateSystemSoundID ((__bridge CFURLRef)(soundUrl), &emailSentSoundId); 
emailSentSoundId과 같이 선언한다

:

SystemSoundID emailSentSoundId; 

이 같은 소리를 재생 :

AudioServicesPlaySystemSound(emailSentSoundId); 
관련 문제