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).
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@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|