Synchronizing Input And Output Buffers
Synchronizing Input And Output Buffers
- Subject: Synchronizing Input And Output Buffers
- From: Andy Barnard <email@hidden>
- Date: Wed, 11 Dec 2013 23:13:46 +0000
Hi all,
I am looking for some help with synchronizing the Remote I/O unit's input and output buffers.
I am sending out a single pulse on the iPhone's speaker and capturing it on the built in microphone. The pulse is always sent on the same sample however I’m seeing a small variation of the time that the pulse appears in the microphone buffers each time I run the application. It appears the alignment of the input/output buffers differs slightly each time I run my application.
How can I ensure that the I/O buffers are exactly in sync with each other, or alternatively how can I calculate how much they are offset from each other by? I am making some precise timing calculations and so this variation is critical to my app.
I am running at 48kHz and using the smallest IOBufferDuration available on my device, which equates to 64 samples a buffer. These two factors make things very stable once running (buffer to buffer things run very accurately) but my problem is on subsequent runs of my app.
Any help is very much appreciated, I have been stuck on this for some time. Thanks in advance, Andy @iamandybarnard |
_______________________________________________
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