Use AVAsset with AVAudioPlayerNode?

Hi,


I have an AVAsset which represents an audio file. I'd like to use it with AVAudioEngine, which means setting up an AVAudioPlayer node.


Unfortunately, the interface for AVAudioPlayer node only has functions for scheduling a file (AVAudioFile) or a buffer.


How do I configure hte AVAudioPlayerNode to work with the audio from the AVAsset?


Thanks,

Frank