• 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: how to access HAL buffer timestamps when using AUHAL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to access HAL buffer timestamps when using AUHAL?


  • Subject: Re: how to access HAL buffer timestamps when using AUHAL?
  • From: William Stewart <email@hidden>
  • Date: Mon, 27 Jul 2009 13:03:17 -0700


On Jul 27, 2009, at 12:54 PM, William Stewart wrote:


On Jul 27, 2009, at 12:21 PM, Ross Bencina wrote:

Jeff and Bill wrote:
True, but I thought the output AU had a means for conveying the input time stamp too, although I don't know what the API for doing it is.

its in the callback that you add when you enable input - AUHAL gives you a callback to tell you that input is available, so you then call AudioUnitRender to get the input. The time stamp provided in the callback is the time stamp from the HAL for the input time

Thanks Bill

You are of course correct. I got a bit confused because my code here is using one callback proc for both render and input and switching behavior using some flags (hey I didn't write this thing, there's even a comment "this is where the magic happens" :-)

Would I be correct to assume that in the full-duplex case, the AUHAL InputCallback and RenderCallback are invoked during the same i/o timer cycle and are hence synchronised?

yes - AULab makes that assumption

It just uses the call for the render callback on the output side as its queue

(umm.. that would be cue! )

to go and get the input data.

It also makes it a very clear condition in its implementation that there is no sample rate conversion happening on either side (input or output), so the number of frames needed for output will be the same as are needed to be retrieved from the input side.


Thanks

Ross.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@apple.com


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

_______________________________________________ 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: 
 >how to access HAL buffer timestamps when using AUHAL? (From: "Ross Bencina" <email@hidden>)
 >Re: how to access HAL buffer timestamps when using AUHAL? (From: Jeff Moore <email@hidden>)
 >Re: how to access HAL buffer timestamps when using AUHAL? (From: "Ross Bencina" <email@hidden>)
 >Re: how to access HAL buffer timestamps when using AUHAL? (From: Jeff Moore <email@hidden>)
 >Re: how to access HAL buffer timestamps when using AUHAL? (From: "Ross Bencina" <email@hidden>)
 >Re: how to access HAL buffer timestamps when using AUHAL? (From: Jeff Moore <email@hidden>)
 >Re: how to access HAL buffer timestamps when using AUHAL? (From: "Ross Bencina" <email@hidden>)
 >Re: how to access HAL buffer timestamps when using AUHAL? (From: Jeff Moore <email@hidden>)
 >Re: how to access HAL buffer timestamps when using AUHAL? (From: William Stewart <email@hidden>)
 >Re: how to access HAL buffer timestamps when using AUHAL? (From: "Ross Bencina" <email@hidden>)
 >Re: how to access HAL buffer timestamps when using AUHAL? (From: William Stewart <email@hidden>)

  • Prev by Date: Re: how to access HAL buffer timestamps when using AUHAL?
  • Next by Date: Echo in 3.0
  • Previous by thread: Re: how to access HAL buffer timestamps when using AUHAL?
  • Next by thread: AudioFileOpenWithCallbacks...
  • Index(es):
    • Date
    • Thread