10s difference in timestamp in sound playback

Dear all,

I am using PTB3. I am having an issue to get the correct time stamp of a sound playback. I added two GetSecs functions surrounding the playback to compare the values of time. 'startime' is always 10s less the two other starttime1&2 !!! The playback is not delayed, seems to start on time. I don't get it. Any ideas??

Thanks for your time
Olivier

---------------------------
Here is the code I am using:

pahandle = PsychPortAudio('Open', [], 1, 1, Fs, 2);
PsychPortAudio('FillBuffer', pahandle, wavedata);

starttime1 = GetSecs;
startime = PsychPortAudio('Start', pahandle, 1, 0, 1);
starttime2 = GetSecs;

PsychPortAudio('Stop', pahandle);
--- In psychtoolbox@yahoogroups.com, "olescop" <olescop@...> wrote:
>
> Dear all,
>
> I am using PTB3. I am having an issue to get the correct time stamp of a sound playback. I added two GetSecs functions surrounding the playback to compare the values of time. 'startime' is always 10s less the two other starttime1&2 !!! The playback is not delayed, seems to start on time. I don't get it. Any ideas??
>

Which OS? I'd guess Windows with a non-ASIO soundcard? Please always provide a detailed description of your setup, e.g., hardware used, os and version etc.
-mario


> Thanks for your time
> Olivier
>
> ---------------------------
> Here is the code I am using:
>
> pahandle = PsychPortAudio('Open', [], 1, 1, Fs, 2);
> PsychPortAudio('FillBuffer', pahandle, wavedata);
>
> starttime1 = GetSecs;
> startime = PsychPortAudio('Start', pahandle, 1, 0, 1);
> starttime2 = GetSecs;
>
> PsychPortAudio('Stop', pahandle);
>