AudioServicesPlaySystemSound ne fait rien mais AudioServicesPlayAlertSound fait vibrer l'iPhone.AudioServicesPlaySystemSound vibration fonctionne mais pas le son
AudioServicesCreateSystemSoundID renvoie un succès. Je développe sur iPhone3G fonctionnant iOS4.
Des idées? Peter
=====
Voici comment je crée le son:
NSString *sndPath = [[NSBundle mainBundle] pathForResource:@"first_touch" ofType:@"wav" inDirectory:@"/"];
CFURLRef sndURL = (CFURLRef)[[NSURL alloc] initFileURLWithPath:sndPath];
int e = AudioServicesCreateSystemSoundID(sndURL, &_firstTouch); // TODO: call 'AudioServicesDisposeSystemSoundID'
Et ce qui est je joue:
AudioServicesPlayAlertSound(_firstTouch);