I need to loop play a .caf file in my iPhone app.
The AVAudioPlayer looks promising. But there\'s one problem. It won\'t stop or mute even if I pressed the mute button o
I realized it was because I had this line of code
[[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: nil];
I then changed it into
[[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryAmbient error: nil];
Then the mute button would work and stop my AVAudioPlayer...