• 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: Callback when AUFilePlayer is finished?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Callback when AUFilePlayer is finished?


  • Subject: Re: Callback when AUFilePlayer is finished?
  • From: David Duncan <email@hidden>
  • Date: Wed, 18 Oct 2006 05:48:11 -0700

On Oct 18, 2006, at 03:26 AM, M. Uli Kusterer wrote:

On 17.10.2006, at 21:53, Kariem Morsy wrote:
I tried this, but it seems that this is called when CoreAudio is finished *scheduling* the audio, not when it is finished actually *playing* it. So as a rule it seems I get called shortly after having started playing a region, while the sound has only just started playing. I.e. here's a console log:



That appears to be the intent, from AudioUnitProperties.h:

Completion Callbacks

A region's completion callback (mCompletionProc) is called when it has been
completely scheduled for reading from disk. This callback is issued on the disk
read thread. If the region is not read from disk in time to play at its
scheduled time, mCompletionProc is called a second time with an error code,
also from the read thread. Note that the region passed to the callback will not
be the same memory object as was passed by the client (since the unit copies the region).


--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan

_______________________________________________
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: Callback when AUFilePlayer is finished?
      • From: "M. Uli Kusterer" <email@hidden>
References: 
 >Re: Callback when AUFilePlayer is finished? (From: Kariem Morsy <email@hidden>)
 >Re: Callback when AUFilePlayer is finished? (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Re: AUFilePlayer volume levels?
  • Next by Date: Re: Callback when AUFilePlayer is finished?
  • Previous by thread: Re: Callback when AUFilePlayer is finished?
  • Next by thread: Re: Callback when AUFilePlayer is finished?
  • Index(es):
    • Date
    • Thread