Re: Looping AUAudioFilePlayer
Re: Looping AUAudioFilePlayer
- Subject: Re: Looping AUAudioFilePlayer
- From: Doug Wyatt <email@hidden>
- Date: Fri, 10 Feb 2006 16:11:19 -0800
On Feb 10, 2006, at 8:19, Ryan Hisey wrote:
Hi,
I am still working with my AUAudioFilePlayer code, and am having
some troubles with the looping aspect. I currently have implemented
a dynamic position marker, pause/play, forward & backward, and
restart functionality. I want to set up a looping region, so that
it's begin point is the first frame of the audio file, regardless
of where I start playback within the file.
When I set the loop count on my ScheduledAudioFileRegion, upon
looping it only goes back to the point of where I started the
playback. So if I scrub through the audio, hit play, it will always
begin looping at this point. Can anyone think of any way of
implementing a more global looping function?
Schedule two adjacent events:
- from the playback start point to the loop end point, non-looping
- from the loop start point to the loop end point, looping
Also instead of giving a number count of times to loop, is there
anyway to have it loop infinitely?
A loop count of 0xFFFFFFFF should be close enough to infinity, no?
250 ms times 0xFFFFFFFF works out to over two years by my math ...
Doug
--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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