• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ScheduledAudioFileRegion.mCompletionProc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ScheduledAudioFileRegion.mCompletionProc


  • Subject: Re: ScheduledAudioFileRegion.mCompletionProc
  • From: Tim Kemp <email@hidden>
  • Date: Tue, 11 Dec 2012 22:01: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.

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


  • Follow-Ups:
    • Re: ScheduledAudioFileRegion.mCompletionProc
      • From: Andy Davidson <email@hidden>
    • Re: ScheduledAudioFileRegion.mCompletionProc
      • From: Tim Kemp <email@hidden>
References: 
 >ScheduledAudioFileRegion.mCompletionProc (From: Tim Kemp <email@hidden>)

  • Prev by Date: Different ways of obtaining AudioUnit instance
  • Next by Date: Re: ScheduledAudioFileRegion.mCompletionProc
  • Previous by thread: Re: ScheduledAudioFileRegion.mCompletionProc
  • Next by thread: Re: ScheduledAudioFileRegion.mCompletionProc
  • Index(es):
    • Date
    • Thread