Re: iPhone Library Access
Re: iPhone Library Access
- Subject: Re: iPhone Library Access
- From: Aran Mulholland <email@hidden>
- Date: Sat, 10 Jul 2010 14:27:14 +1000
So are you saying you would make a local copy of the track from the library. Pity I would just like to apply a effect over the top, without copying anything at all. For example a custom iPod player that had a six band eq.
On 09/07/2010, at 11:18 PM, Chris Adamson <email@hidden> wrote:
> I just found this last night and need to find some time to investigate it further. The basic idea is to use the MediaPlayer framework to get an MPMediaItem. Usually you'd use this to play something from the library. But the -[valueForProperty:] method now takes a key MPMediaItemPropertyAssetURL which returns a special URL of the form ipod-library://... .
>
> Now you switch gears to the AV Foundation framework (the only thing that supports this weird URL scheme). Presumably, the AVPlayer will accept this URL, but to do anything interesting I think what you want to do here is to create an AVURLAsset. From that, I think you'd be able to add the asset as a track to a movie composition. Unfortunately, AV Foundation doesn't offer sample level access at edit-time (only at capture time… arrgh!), but maybe you could export an audio-only movie to PCM and then start inspecting samples. I don't currently know if AV Foundation can export into a format that Core Audio's AudioFileOpenURL() can open… obviously, it would be nice to export to CAF if possible.
>
> Like I said, I think the MPMediaItemPropertyAssetURL property is the secret, but I need to find sometime to play with it. There are only six hits on Google for MPMediaItemPropertyAssetURL right now, seven once this gets posted, but hopefully people will go off and running with it.
>
> --Chris
>
> On Jul 8, 2010, at 11:14 PM, Aran Mulholland wrote:
>
>> I noticed there is an app on the app store that allows access to the
>> iTunes library (Flare Scratch) and then manipulates the audio data. I
>> hear its a feature of iOS 4.
>> What library/framework do i use for this kind of access?
>
_______________________________________________
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