using ScheduledAudioFileRegion in AUAudioFilePlayer
using ScheduledAudioFileRegion in AUAudioFilePlayer
- Subject: using ScheduledAudioFileRegion in AUAudioFilePlayer
- From: "Jan Calta" <email@hidden>
- Date: Wed, 21 Mar 2007 00:53:09 +0100
Hello,
I'm starting with AUAudioFilePlayer and I wonder if anybody could make
clear using of ScheduledAudioFileRegion.mCompletionProcUserData for
me?
I'm trying to get feedback about completion of audio file playback. I
read a thread about completion callbacks as well as the documentation
in AudioUnitProperties.h and conclusion was that callback is called
after scheduling the reading of the file, not after finishing its
playback. Nevertheless I got these callbacks quite near (and
consequently right at) the real end of the playback when priming the
file with value of 0 (default value). I wonder if there is a way to
notice the end of the playback via completion callbacks?
To get reason of calling the callback I probably need to use
mCompletionProcUserData field of ScheduledAudioFileRegion (beside
using mCompletionProc of course), right? But I have no idea how. Could
anybody make it clear when and how the mCompletionProcUserData is
filled or provide an example?
Thank you very much for any help
Jan Calta
_______________________________________________
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