title: Time delay of audio signal
body: <p>Here is the scenario:</p>
  
  <p>I'm generated a signal which is: 200ms @ 2kHz 1000ms of zeros 200ms @ 2kHz</p>
  
  <p>and i want to calculate the time delay between them, not between the two synthetic audio part. but by playing the signal on a speaker and recording it using a microphone (adds noise)</p>
  
  <p>Fs = 44100</p>
  
  <p>i tried: 1. cross correlation 2. calculation the diff between two maximas of RMS window at the size of 8820 samples. (we get the maxima when the window is on the sound part.</p>
  
  <p>the distance between the speaker and the mic is around 30cm. i cant get a steady result. why?</p>