Menu

2012년 2월 2일 목요일

iOS AudioServicesPlaySystemSound Play Sound

1. 필요한 framework
AudioToolbox.framework

2. include header file
#import

3. Create and play sound
// create & play
SystemSoundID soundID;
AudioServicesCreateSystemSoundID((CFURLRef)url, &soundID);
AudioServicesPlaySystemSound(soundID);

4. Release resource
// release
AudioServicesDisposeSystemSoundID(soundID);

댓글 없음:

댓글 쓰기