AVAudioEngine volume property latency

Hello,


I'm working with AVAudioEngine on iOS, and I'm noticing the volume property an AVAudioPlayerNode isn't taking effect immediately, sometimes. I can't reproduce it every time, but I've seen code like this produce an little chirp when I run it.


playerNode.volume = 0
playerNode.play()


I've gotten in the habbit of setting the player volume at early points in the code to prevent these chirps, but it seems really strange. Has anyone else seen anything like this before?


Thanks.