this is more of an observation than a question. i use the following method to play short sound effects in my game:
-(void) playSound: (id) fileName
{
SystemSoundID soundID;
NSString *soundFile = [[NSBundle mainBundle] pathForResource:fileName ofType"wav"];
NSURL *url = [NSURL fileURLWithPath:soundFile];
OSStatus error = AudioServicesCreateSystemSoundID( (CFURLRef) url, &soundID );
AudioServicesPlaySystemSound(soundID);
}
interestingly the simulator intermittently gives me an error 1501 without playing the sound. my iPod Touch ALWAYS plays the sound correctly
so if something doesn't seem to work right in the simulator, give it a try on the real device. it just might work
-(void) playSound: (id) fileName
{
SystemSoundID soundID;
NSString *soundFile = [[NSBundle mainBundle] pathForResource:fileName ofType"wav"];
NSURL *url = [NSURL fileURLWithPath:soundFile];
OSStatus error = AudioServicesCreateSystemSoundID( (CFURLRef) url, &soundID );
AudioServicesPlaySystemSound(soundID);
}
interestingly the simulator intermittently gives me an error 1501 without playing the sound. my iPod Touch ALWAYS plays the sound correctly
so if something doesn't seem to work right in the simulator, give it a try on the real device. it just might work