PsychPortAudio('Start', ...) returns timestamp with large offset

We’re using a loop to play several audio stimuli withlastStim = PsychPortAudio('Start', handle, 1, 0, 1);. However, the first value returned by the function is offset by a very large number, e.g. it has an offset of lastStim - GetSec = -1126107 which is around 13 days.

All subsequent calls to the function return correct lastStim times which are in line with GetSec values.

According to ChatGPT, it can happen that the AudioDevice will return the computer boot time on first access and only synchronize on subsequent calls.

Is this behaviour expected? How can we prevent that (it weirdly enough doesnt always happen and only on some machines!)?

What Psychtoolbox version, operating system/version, Matlab/Octave version, sound card etc.?
Minimal code to demonstrate the issue? Full output of PsychPortAudio in the Matlab/Octave console?

What value is actually returned in lastStim in these cases? A value of zero would be returned if

The behaviour is not expected, assuming you did everything else right. But it sounds like some OS or audio device driver bug.