Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When did AUFilePlayer finish playing?




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:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.