Re: Random access to decoded ipod tracks via AVAssetReader?
Re: Random access to decoded ipod tracks via AVAssetReader?
- Subject: Re: Random access to decoded ipod tracks via AVAssetReader?
- From: Christopher McGrath <email@hidden>
- Date: Fri, 01 Apr 2011 15:14:51 +1100
Try setting the timeRange property of the AVAssetReader. I believe the default is range is [0, duration] but you can set the timeRange manually with a CMTimeRange. The catch is that you have to tell the AVAssetReader to cancelReading before you can set the timeRange and startReading again.
Chris.
On 01/04/2011, at 2:14 PM, Will Archer wrote:
> Is this possible? I'm pretty familiar with reading decoded audio data sequentially from start to finish, but I'd like to seek to the halfway point of the track, for example. I looked through the API and came up empty.
>
> Thanks,
>
> Will
> _______________________________________________
> 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
_______________________________________________
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