MusicKit + AVAudioEngine?

Hi,


I'm trying to get a handle on what I will be able to do with MusicKit and what won't be possible.


The app I'm working with is a DJ app that integrates with iTunes and uses an AVAudioEngine to play assets retrieved from iTunes. The customer has requested that I add Apple Music support to the app.


Is it possible to play songs from Apple Music through an AVAudioEngine? How is this done? Are there any limitations, for example, would I still be able to apply filters such as AVAudioUnitTimePitch or AVAudioUnitVarispeed?


Is it possible to access the unencoded raw audio stream from an Apple Music asset, as can be currently done with iTunes music via an AVAssetReader?


Is the AVAsset class and its associated classes used to represent music in the Apple Music library, or is there a different set of classes for this, or something else?


Thanks,

Frank

Based on my (limited) experience with MusicKit, there is no way to get raw audio because Apple Music apparently uses DRM.


I used AVPlayer to play music from the music library. When I decided to integrate Apple Music, I had to switch over to MPMusicPlayerController.


Also, note this info from the Apple Music API FAQ:


What are the limitations of the current Apple Music API?


There is no support currently for DJ style apps.

MusicKit + AVAudioEngine?
 
 
Q