Re: ScheduledAudioFileRegion.mCompletionProc
Re: ScheduledAudioFileRegion.mCompletionProc
- Subject: Re: ScheduledAudioFileRegion.mCompletionProc
- From: Tim Kemp <email@hidden>
- Date: Mon, 10 Dec 2012 11:21:11 -0500
> To keep track when a region has finished playing, you need to count the frames played yourself and compare to what has been loaded.
Ok thanks, that will work. Don't need the completion callback.
On 10 Dec 2012, at 02:15, Orestis Markou wrote:
> The documentation states exactly that behavior, that is, you get a notification when the file has been read from disk.
>
> To keep track when a region has finished playing, you need to count the frames played yourself and compare to what has been loaded.
>
> On 10 Δεκ 2012, at 4:51 π.μ., Tim Kemp <email@hidden> wrote:
>
>> Hi,
>>
>> Sorry for more questions. I want to be notified when a region has finished playing. I am trying to use the completion proc on the ScheduledAudioFileRegion to do this.
>>
>> I have set a proc up on the (only) region that my AudioFilePlayer unit is using; so far, it's called once before the short file completes. I think it's called when audio file services has completed reading the last chunk from disk.
>>
>> If the completion proc is the wrong way to do it, how do I get a notification when a particular region has finished playing?
>>
>> Thanks
>> _______________________________________________
>> 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
>
_______________________________________________
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