I use the code below to play the laser ship sound, but it only works in the simulator. Why?
the code :
[[SimpleAudioEngine sharedEngine] preloadEffect:@"Laser_ship.caf"];
then
[[SimpleAudioEngine sharedEngine] playEffect:@"Laser_ship.caf" pitch:1.0f pan:0.0f gain:0.25f];
also I use about 8 effect sounds that all work properly.
Is the case of your filename correct? The simulator is case insensitive but the device isn’t 🙂
i.e. you have
@"Laser_ship.caf", is it really called@"laser_ship.caf"