i have used following code to play caf sound.but it works in simulator ,not in device...anyone can give solution?
NSString *pathe=[[NSBundle mainBundle] pathForResource:@"Watermovement3" ofType:@"caf"];
CFURLRef url =(CFURLRef)[NSURL fileURLWithPath:pathe];
AudioServicesCreateSystemSoundID(url,&okk);
AudioServicesPlaySystemSound(okk);