Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

morganpackard

macrumors newbie
Original poster
Nov 22, 2010
1
0
I'm playing back a longish audio file (20 seconds or so) using AVAudioPlayer. I need to be able to pause and start in the middle of the file. When I pause or start while the audio is playing, there's a noticeable "pop" as the audio starts or finishes.

I've been able to improve the situation by doing a very fast fade-out (setting the volume multiple times using performSelector: withObject: afterDelay. But the sound is still a little glitchy with this technique.

Is there a standard way to start/pause AVAudioPlayer without these glitches?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.