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

Callback when AUFilePlayer is finished?


  • Subject: Callback when AUFilePlayer is finished?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 17 Oct 2006 13:32:47 +0200

Hi folks,

I've managed to find the FilePlayer sample code I can use to achieve nice playing of raw sound data. Now, I have a few things even repeated Googles couldn't solve for me, so I hope someone here can help me:

Is there any way I can get an AUFilePlayer (or the output unit in my graph, or whatever) to notify me when it's finished playing sound? I've found that the current play time will be -1 when it's finished playing, so I could poll, but certainly there's a callback somewhere I can register for to get that information?

Most code on the web assumes I'm feeding data into the Audio Units myself, so I'll know when I'm at the end, but of course when I go through FilePlayer that isn't the case.

 Anyone know an alternative to polling the current play time?

Cheers,
-- M. Uli Kusterer


_______________________________________________ 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: "tahome izwah" <email@hidden>
    • Re: Callback when AUFilePlayer is finished?
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Reading midi events from device
  • Next by Date: AUFilePlayer volume levels?
  • Previous by thread: Re: Reading midi events from device
  • Next by thread: Re: Callback when AUFilePlayer is finished?
  • Index(es):
    • Date
    • Thread