Hello i have this problem:
I Create a NSMutable array of 90 sounds.
It plays perfectly, in the device and in the simulator.
But when i play the sounds in the third session i cannot hear the sounds.
Does anybody know why?
Here is the code.
NSMutableArray *sounds;
sounds = [NSMutableArray new];
for (int i=0; i<90;i++
[sounds addObject:[NSString stringWithFormat:@"Juancho%u",i+1]];
NSString *myFile = [sounds objectAtIndex

number)];
NSString *pathStringAudio = [[NSBundle mainBundle] pathForResource:myFile ofType:@"aif"];
NSURL *pathURLAudio = [NSURL fileURLWithPath

athStringAudio];
NSError *error;
audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL

athURLAudio error:&error];
if (audioPlayer == nil)
NSLog([error description]);
else
[audioPlayer play];