RE: Sample accurate sync of simultaneous live input and output
RE: Sample accurate sync of simultaneous live input and output
- Subject: RE: Sample accurate sync of simultaneous live input and output
- From: <email@hidden>
- Date: Wed, 10 Oct 2007 10:28:25 +0100
- Thread-topic: Sample accurate sync of simultaneous live input and output
Hi,
I'm developing an audio analyser application that sends audio to an external device and
evaluates the returned input in real time. I'm new to core audio and would appreciate advice
as to how to best approach simultaneous live input and output. To complicate things I'm
developing on new intel hardware that doesn't allow a single AUHAL to handle I/O and the
application needs to be able to know the latency in samples of the input stream relative to
the output stream, so the input analysis algorithm can sync to the output test signal
generator.
So far I think I'm looking at 3 approaches:
1. I've already setup 2 AUHAL's to handle I/O but testing their inTimeStamp.mSampleTime
doesn't yield sample points that refer to a global sample clock. I presume that each AUHAL
generates it's own mSampleTime reference so should I look to using inTimeStamp.mHostTime to
sync the streams?
2. Should I be looking into programmatically creating an aggregate device, which I assume
would return the sample sample reference for each stream.
3. Or would it be more straight forward, as I don't need to use any audio units/converters
to add IOProc's directly to the appropriate audio devices.
Any advice would be very much appreciated!
Regards,
Rick.
**********************************************************************
The information in this e-mail is confidential and intended solely
for the use of the individual to whom it was addressed. If you are
not the intended recipient, be advised that you have received this
e-mail in error and that any use, dissemination, forwarding, printing
or copying of this e-mail is strictly prohibited. If you have received
this e-mail in error, please advise the sender by using the reply
facility in your e-mail software, and then delete it from your system.
**********************************************************************
_______________________________________________
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