Re: ScheduledAudioFileRegion.mCompletionProc
Re: ScheduledAudioFileRegion.mCompletionProc
- Subject: Re: ScheduledAudioFileRegion.mCompletionProc
- From: Tim Kemp <email@hidden>
- Date: Tue, 11 Dec 2012 23:18:16 -0500
Answered my own question: yes, it does.
On 11 Dec 2012, at 22:01, Tim Kemp wrote:
>> To keep track when a region has finished playing, you need to count the frames played yourself and compare to what has been loaded.
>
> What's the best way to do that? Would a render notify on the input of the mixer that the file player unit is connected to work?
>
> Thanks
>
> 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
_______________________________________________
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