Hello,
I'm planning to play a sound using the "AudioSound" adapter. When I recorded the event code that indicates the beginning of the sound and the actual sound outputs from the computer in our recording system, the actual sound outputs had about 30-45 msec of delays from the event codes (this delay peaked around 40-42.5 msec).
One frame of delay should be reasonable with Timing Script v2, but I'm not sure what causes other frames of delay.
I don't need to precisely control the timing to start playing the sound but need to collect the precise time stamps for the initiation of sound. Is there any way to synchronize the event code and the sound signal output (for example, delay the timing to send the event code)?
Thank you!
%% script used to test the AudioSound output
snd = AudioSound(null_);
snd.List = 'tone_2a.mat';
scene = create_scene(snd);
pause(3);
run_scene(scene,2);
eventmarker(4);
pause(1);