When did AUFilePlayer finish playing?
When did AUFilePlayer finish playing?
- Subject: When did AUFilePlayer finish playing?
- From: Daniel Jalkut <email@hidden>
- Date: Sat, 18 Nov 2006 13:03:07 -0500
I'm using a number of AUFilePlayers to provide data a mixer unit.
Since the number of sounds I need to play is indeterminate, I need
some kind of recycling mechanism, so I want to know when a particular
AUFilePlayer is done.
I was attracted by the ScheduledAudioFileRegion callback mechanism,
since it sounded like it might be just the thing. But now I see that
the callback seems to be more of an indicator that the file is done
with (that is, the bytes are buffered and ready for rendering).
Is there a straightforward way of being notified when an AUFilePlayer
(or perhaps any generator audio unit generically) is done generating
meaningful audio? Or do I have to keep track of this myself based on
the length of the regions I'm setting on the file player?
Thanks for your help,
Daniel
_______________________________________________
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