【发布时间】:2011-07-26 14:52:22
【问题描述】:
我使用下面的代码播放激光船的声音,但它只适用于模拟器。为什么?
代码:
[[SimpleAudioEngine sharedEngine] preloadEffect:@"Laser_ship.caf"];
然后
[[SimpleAudioEngine sharedEngine] playEffect:@"Laser_ship.caf" pitch:1.0f pan:0.0f gain:0.25f];
我还使用了大约 8 种效果声音,它们都可以正常工作。
【问题讨论】:
标签: iphone ios ipad cocos2d-iphone audio