Use the MediaPlayer framework to get the song from the library, get its 
MPMediaItemPropertyAssetURL metadata property, pass that to the AVFoundation 
APIs (specifically, to AVAssetReader).

In a blog I wrote years ago 
<http://www.subfurther.com/blog/2010/12/13/from-ipod-library-to-pcm-samples-in-far-fewer-steps-than-were-previously-necessary/
 
<http://www.subfurther.com/blog/2010/12/13/from-ipod-library-to-pcm-samples-in-far-fewer-steps-than-were-previously-necessary/>>,
 you can see how to use AVFoundation to do a format conversion to LPCM.

If you want to work on those buffers in memory with Core Audio, just take the 
CMSampleBuffers as they’re read, get their CMBlockBuffers, and then use the 
helper functions that convert block buffers to AudioBufferLists or 
AudioPacketStreamDescriptions.

—Chris

> On Apr 17, 2015, at 1:49 PM, Andy Davidson <[email protected]> 
> wrote:
> 
> Is there a way I can import songs or some how access songs that a user had 
> downloaded to their device? I want to do some filtering and other processing 
> on the raw audio
> 
> Thanks
> 
> Andy
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/coreaudio-api/invalidname%40gmail.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to