Hi,
We're trying to debug and correct a most bizarre issue with AVAudioEngine.
We are using AVAudioEngine to play an MPEG4 wrapped AAC file and we're hearing stuttering when we play() after we have paused() the engine.
Here's our implementation for both pause() and play():
func play() throws {
// add any taps we want
if !engine.isRunning {
try engine.start()
}
audioPlayerNode.play()
}
/
func pause() {
// remove any taps we have
audioPlayerNode.pause()
engine.pause()
}
where engine is an AVAudioEngine instance, and audioPlayerNode is an AVAudioPlayerNode instance.
Has anyone ever encountered this sort of behavior? How did you resolve this?