• 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: using ScheduledAudioFileRegion in AUAudioFilePlayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using ScheduledAudioFileRegion in AUAudioFilePlayer


  • Subject: Re: using ScheduledAudioFileRegion in AUAudioFilePlayer
  • From: William Stewart <email@hidden>
  • Date: Wed, 21 Mar 2007 11:27:44 -0700


On 20/03/2007, at 4:53 PM, Jan Calta wrote:

Hello,

I'm starting with AUAudioFilePlayer and I wonder if anybody could make
clear using of ScheduledAudioFileRegion.mCompletionProcUserData for
me?

I'm trying to get feedback about completion of audio file playback. I
read a thread about completion callbacks as well as the documentation
in AudioUnitProperties.h and conclusion was that callback is called
after scheduling the reading of the file, not after finishing its
playback.

Yes, that's correct

Nevertheless I got these callbacks quite near (and
consequently right at) the real end of the playback when priming the
file with value of 0 (default value). I wonder if there is a way to
notice the end of the playback via completion callbacks?

Not at this time. the user data is just a pointer something you need when the callback is fired. Typically it would be a pointer to a "this" object in C++, or the address of some kind of data structure, etc. You provide this pointer when you instantiate the completion proc, and then when the completion proc is called, the user data pointer you gave it is given back to you


Bill


To get reason of calling the callback I probably need to use mCompletionProcUserData field of ScheduledAudioFileRegion (beside using mCompletionProc of course), right? But I have no idea how. Could anybody make it clear when and how the mCompletionProcUserData is filled or provide an example?

Thank you very much for any help

Jan Calta
_______________________________________________
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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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


References: 
 >using ScheduledAudioFileRegion in AUAudioFilePlayer (From: "Jan Calta" <email@hidden>)

  • Prev by Date: Re: auval and you
  • Next by Date: What is the default sound bank format that MusicPlayer is using?
  • Previous by thread: using ScheduledAudioFileRegion in AUAudioFilePlayer
  • Next by thread: AUScheduledSoundPlayer example needed
  • Index(es):
    • Date
    • Thread