Adding automatic source delay calibration

glenne

New Member
I'm interesting in adding a way to calculate delay between two or more audio sources to allow for synchronizing sources. For example, I have quality audio coming in from a mixer as well as audio coming in from a camera with integrated mic. By sampling a few seconds of audio from each source it is possible to calculate the delay between two sources to allow synchronizing the video signal with the high quality mixer input. This would replace the manual approach of using clappers and special video tickers to estimate audio delay.

The calculation and math involved I can handle but I'm in need of pointers to what the best way to add this would be and what apis I can use to grab the samples from 2 or more audio sources.

- What is the best way to add this feature? Is this a plugin?
- Is there similar code available for grabbing the audio streams required? Perhaps the Audio Mixer?
- Where should new code for this be added?

Glenn
 
Top