头文件
#import "SimpleAudioEngine.h"
init 里 进行加载
[[SimpleAudioEngine sharedEngine] preloadEffect:@"choice_ok.mp3"]; [[SimpleAudioEngine sharedEngine] preloadEffect:@"click_nav.mp3"];
播放
[[SimpleAudioEngine sharedEngine] playEffect:@"choice_ok.mp3"];
背景音效
[[SimpleAudioEngine sharedEngine] playBackgroundMusic:@"TileMap.caf"];