I have an AVAudioPlayerNode looping a segment of a song:
AVAudioPlayerNode
audioPlayer.scheduleBuffer(segment, at: nil, options:.loops)
I want to get