How to get time difference between different audio input?

Hi, guys.

I use 4-channels audio interface to send signal from 4 mics to of. How can I know which mic is the first one to receive signal? and How can I get the time difference between 4 mics which receive signals respectively?

Thank you so much!!!

when calling soundStream.setup() just specify that you want 4 inputs and no outputs.

then you’ll get an interleaved buffer (mic1-sample1, mic2-sample1, …, mic1-sample2, mic2-sample, … ) in the audioIn callback.