>> What is the reason that signal
1 is ahead of signal 2?
For various reason, one audio receiving from network and
other thru air.
>> Perhaps a simple delay is what you are looking for, but maybe you need
resampling.
Yes delay estimation is required as the delay is not known upfront.
In addition to re-sampling stretching also required.