• 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
mCompletionProc doesn't fire until playback completes - contrary to popular experience
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mCompletionProc doesn't fire until playback completes - contrary to popular experience


  • Subject: mCompletionProc doesn't fire until playback completes - contrary to popular experience
  • From: HDS <email@hidden>
  • Date: Mon, 04 Feb 2013 16:37:46 -0800

I have an AUGraph of AUFilePlayer -> AUTimePitch -> default output, which is all working nicely.

I am playing numerous audio regions, one at a time under user control, from within a single file through this Graph. I would like to get a notification of playback completion when each region (or the whole file) stops playing, whether by the user hitting a STOP button, or by the region or file being completed. I am using mCompletionProc of the region struct to point to my post-completion routine.

Here's the problem: according to everything I read, I should get to this completion routine much earlier than I do - it's supposed to happen when the region is ready and queued up for playback, not when it actually completes. But I appear to be not getting to my completion routine until precisely the end of playback - not earlier. Or in other words, it's actually working the way I (and others) would like it to, instead of what is documented, and experienced by others. This behavior is consistent regardless of playback speed through AUTimePitch.

I am guessing that this is an unadvertised benefit of running the FileAU through AUTimePitch before output.

So my questions are:

Is my guess correct as to the cause of this? Why?
Is this what is supposed to happen?
Can I count on this continuing to happen in the future?

Thanks…

-H


 _______________________________________________
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: mCompletionProc doesn't fire until playback completes - Maybe not...
      • From: HDS <email@hidden>
References: 
 >Re: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal) (From: James McCartney <email@hidden>)
 >Re: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal) (From: Chris Adamson <email@hidden>)
 >Re: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal) (From: James McCartney <email@hidden>)
 >Re: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal) (From: Jont Olof Lyttkens <email@hidden>)
 >Re: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal) (From: James McCartney <email@hidden>)

  • Prev by Date: Re: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal)
  • Next by Date: Re: mCompletionProc doesn't fire until playback completes - Maybe not...
  • Previous by thread: Re: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal)
  • Next by thread: Re: mCompletionProc doesn't fire until playback completes - Maybe not...
  • Index(es):
    • Date
    • Thread