At the suggestions of people on this list, I've started rewriting my
code using the AUHAL. Since I need to know the current sample time
I'm AudioDeviceGetCurrentTime. I need to have that match up with the
time passed in to my Render callback. If I set the
kAudioOutputUnitProperty_StartTimestampsAtZero property to zero, then
this works as expected. However, this constant isn't defined in the
10.2.8 SDK (nor the 10.3.9 SDK) so I assume that it isn't implemented
in earlier systems.
I've tried using AudioDeviceTranslateTime() to translate the time but
that is not working for me. The code I'm using is the following.
This->m_OutputDevice is set to be the current device of the AU. The
assert is firing. I tried using mHostTime both in my GetPosition()
function and here but it doesn't work well at all. The video is tied
to the audio and when I use mHostTime, the video becomes jerky
whereas if I use mSampleTime, it is very smooth.
return 4294956430 for error? I know I can get the latency from the
output device itself and it seems that's what I will have to do but
this looks like it should work to me.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden
This email sent to email@hidden