Re: How does one update a view position during a core audio render callback?
Re: How does one update a view position during a core audio render callback?
- Subject: Re: How does one update a view position during a core audio render callback?
- From: "Patrick J. Collins" <email@hidden>
- Date: Sun, 08 Mar 2015 09:42:12 -0700 (PDT)
> 2) Playback position is a special case where you don't even need to
> pass data. The CoreAudio time line will progress in a predictable way.
> You merely need to make a note of the start time, and then all time
> stamps afterwards are relative to your start time, and thus reflect
> your playback position. Loops will require an update to the start
> time. There is a header that details the timing calls. If you want to
> get fancy, you can even calculate the presentation time of your
> AudioUnit chain, to adjust for the difference between the time audio
> data is placed in the buffer versus when it is actually heard, and
> then your view position will be quite accurate.
I don't see anything in <CoreAudio/HostTime.h> other than:
AudioGetCurrentHostTime
AudioGetHostClockFrequency
AudioGetHostClockMinimumTimeDelta
AudioConvertHostTimeToNanos
How would I get the "time line" of the specified audiounit?
Patrick J. Collins
http://collinatorstudios.com
_______________________________________________
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