Is latency pre-accounted for in 'when' parameter for PsychPortAudio?

Very general question that I couldn’t find an answer to - in the following line (assuming things are working as expected) will the audio start to play at some_time or at some_time + latency?

In other words, is the latency measured at initialization already taken into account by the function, or do I need to take it into account manually?

some_time = GetSecs() + 10;
PsychPortAudio(‘Start’, pahandle, 1, some_time);

Assuming it’s accounted for already - but just wanted to make sure.

Thanks -

PTB-3, Xubuntu 20.04/Windows 7, currently no ASIO card, Matlab 2020a

Assuming things are working as expected, it is accounted for. The PsychPortAudio('LatencyBias') function allows to manually add an additional corrective offset for the case where your soundcard (or its driver) is not good at figuring things out itself.

1 Like