Re: Looping AUAudioFilePlayer
Re: Looping AUAudioFilePlayer
- Subject: Re: Looping AUAudioFilePlayer
- From: Ryan Hisey <email@hidden>
- Date: Mon, 13 Feb 2006 11:20:32 -0500
Doug,
Thank you, I got it to work just like you said. The tricky part was
correctly setting the start & end frames on the two portions.
Ryan
On Feb 10, 2006, at 7:11 PM, Doug Wyatt wrote:
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