Hello,
some advertisement:
I released a new version of my delay estimation subroutine (Matlab /
Octave). It finds the delay and scaling factor between two cyclic (or
zero-padded) signals, and applies it to one signal in order to match the
other.
Download links are on [1] at the top of the page.
The main algorithm is described in my blog entry [2] from 2007, which was
rewritten a month ago.
The fallback algorithm is documented in [3].
The code also supports phase unwrapping as an algorithm option, see line
57.
I hope it's useful.
Cheers
Markus
[1] http://www.dsprelated.com/showcode/207.php
[2] http://www.dsprelated.com/showarticle/26.php
[3] http://www.dsprelated.com/showcode/288.php