when playing a sound the animation freeze\slowing problem.
sound size 20kb mp3.
animation size 5kb png.
also happens in other animation functions.
basically whenever i play a sound the animation slowing down or pauses, what to do ???
code:
- (void) startAnimation {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.8];
CGPoint destination = CGPointMake(152,20);
pink.center = destination;
[UIView commitAnimations];
[soundPink play];
}
- (void) initSoundResources {
soundPink = [[APlayer alloc] initWithFile:@"ballShuffle" type:@"mp3"];
soundPink = 0.4;
}