Callback when AUFilePlayer is finished?
Callback when AUFilePlayer is finished?
- Subject: Callback when AUFilePlayer is finished?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Tue, 17 Oct 2006 13:32:47 +0200
Hi folks,
I've managed to find the FilePlayer sample code I can use to
achieve nice playing of raw sound data. Now, I have a few things even
repeated Googles couldn't solve for me, so I hope someone here can
help me:
Is there any way I can get an AUFilePlayer (or the output unit in
my graph, or whatever) to notify me when it's finished playing sound?
I've found that the current play time will be -1 when it's finished
playing, so I could poll, but certainly there's a callback somewhere
I can register for to get that information?
Most code on the web assumes I'm feeding data into the Audio Units
myself, so I'll know when I'm at the end, but of course when I go
through FilePlayer that isn't the case.
Anyone know an alternative to polling the current play time?
Cheers,
-- M. Uli Kusterer
_______________________________________________
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