How do you find the audio latency ? (Windows/OSX)
<p>I'm writing a music application, but I have no clue how applications such as Ableton/Cubase/etc find the audio latency of a system (do they ?) so they can compensate for time difference when recording/playing.
Meaning, the audio input latency (from mic to useable buffer) and the audio output latency (from a buffer to sound in speakers).</p>

<p>It seems more complex than just a matter of buffer size, since an internal chain of events occurs in-between the analogic audio and the digital data the software has access to.</p>

<p>Any idea how to (gu)estimate that ?</p>