Dear PTB community,
we have realized a strange behavior when trying to play auditory stimuli using PsychPortAudio, namely that when recording the output with an oscilloscope, the sound is compressed in time, by about 2.5% (50ms for a 2s stimulus), as shown in the attached picture, while the time stamps given by PsychportAudio indicate the correct duration.
We have tried on several systems (all Windows (7 and 10), with Wasapi). When we play a wavefile of the stimulus using the default windows player, no compression occurs on the oscilloscope. We tried with a different sampling rate, and different latency-settings for PsychportAudio, but we cannot figure out what it is. We also checked with a sound that is modulated at the on- and offset, to see where the output is truncated or compressed, but all parts of the sound are shortened equally.
To make sure it is not our code, we used the BeepDemo by Peter Scarfe and set the stimulus duration to 2s. Still the same behavior.
System information is below.
We would greatly appreciate help with this.
Best wishes,
Sophie
Info given by InitializePsychSound(1);:
PTB-INFO: Using modified PortAudio V19.6.0-devel, revision unknown
PTB-INFO: New audio device -1 with handle 0 opened as PortAudio stream:
PTB-INFO: For 2 channels Playback: Audio subsystem is Windows WASAPI, Audio device name is Haut-parleurs / écouteurs (Realtek Audio)
PTB-INFO: Real samplerate 48000.000000 Hz. Input latency 0.000000 msecs, Output latency 22.000000 msecs.
System Info:
PsychtoolboxVersion = ‘3.0.16 - Flavor : beta - Corresponds to SVN Revision 10420’
Running on Windows 10 (Version 10.0.17763)
Dell PC, Latitude E7470. 64 bit. BIOS Version : Dell Inc 1.15.4, 12/05/2017
Processor : Intel® Core™ i7-6600U CPU @ 2.60GH, 2801 MHz, 2 cores, 4 logical processor
System sound devices : 1. Realtek Audio. driver : 6.0.1.6125, 04/12/2018
2.Son Intel® for screens. driver : 10.24.0.3, 04/12/2018