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);
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);