Datapixx(‘GetMicrophoneGroupDelay’)

Psychtoolbox>Datapixx.{mex*} subfunction

delay = Datapixx(‘GetMicrophoneGroupDelay’, sampleRate);

Returns Datapixx Microphone IN group delay in seconds.
This is the time between when a voltage appears at the “MIC IN” jack of the
DATAPixx, and when an audio input schedule will acquire the voltage. Due to the
way in which CODECs operate, this delay is a function of the sample rate. For
greatest precision in audio acquisition timing, this value could be subtracted
from the scheduleOnset parameter before calling SetMicrophoneSchedule.
See DatapixxAudioFeedbackDemo for an example.

###See also: InitAudio, SetMicrophoneSchedule