Looping with AUFilePlayer
Looping with AUFilePlayer
- Subject: Looping with AUFilePlayer
- From: Joel Perry <email@hidden>
- Date: Wed, 3 Oct 2007 15:45:18 -0500
Hello all,
I will try to be both succinct and thorough!
I'm building an audio player that has an 'A-B loop' feature like my old Denon CD deck: 1. first button press = mark the start point of a loop 2. second button press = mark the end point of the loop and start looping 3. third button press = cancel looping and play on... I am having success using AUFilePlayer, except about 20% of the time, I get a short (but audible) break when I cancel looping. I'm scheduling new regions for play (after AudioUnitReset), feeding appropriate values for 'mStartFrame', 'mFramesToPlay', etc. Placing the scheduling within a RenderNotify (so I'm not resetting the player in the middle of a render cycle) helps, but not all the time.
Anyone have any ideas how to consistently clean up these transitions? Thanks in advance,
Joel Perry -----------------------------------------------
|
_______________________________________________
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