반응형
    
    
    
  http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Sound/Sound.pdf 
                    
        // Setting
NSBundle *mainBundle = [NSBundle mainBundle];
NSSound *sound = [[NSSound alloc] initWithContentsOfURL:[mainBundle pathForResource:@"sound" of Type:@"wav"] byReference:NO]
// play
[sound play];
// stop
[sound stop];
//infinity loops
sound.loops = YES; 
반응형
    
    
    
  'iDev' 카테고리의 다른 글
| cake bake MAMP MySQL socket connection refused error (0) | 2011.02.11 | 
|---|---|
| Google I/O 2011 - [준비편 3] 등록! 시작! (1) | 2011.02.08 | 
| webview 에서 html 한글이 깨질때 (0) | 2011.01.06 | 
| cocos2d에 game center 넣기 (0) | 2010.12.24 | 
| [iOS Dev] modifying layer that is being finalized - error (0) | 2010.12.15 |