added functionality to estimate the delay between the audio triggers and the actual audio file