Hi,
I am trying to play sounds by ASIO. Psychtoolbox finds ASIO and uses it as default (or is specified to use ASIO by PsychPortAudio('open') command), but sounds do not come out of headphones connected to a sound card with ASIO. Instead, Microsoft sound mapper can play sounds from the same headphones.
The followings are the information of our system:
OS: Windows 10 version 1607
Matlab: R2017a
Psychtoolbox: 3.0.14
Sound card: Sound Blaster ZxR
Output from sound card: S/PDIF
Headphone amplifier: Sennheiser HDVD 800
Headphone: HD 800 S
Here is the output of PsychPortAudioTimingTest:
>> PsychPortAudioTimingTest
PTB-DEBUG: PortAudio says: ASIO names[0]:Creative SBZ Series ASIO
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 name = Creative SBZ Series ASIO
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 inputChannels = 6
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 outputChannels = 6
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 bufferMinSize = 2208
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 bufferMaxSize = 2208
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 bufferPreferredSize = 2208
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 bufferGranularity = 0
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 defaultSampleRate = 44100.000000
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 defaultLowInputLatency = 0.050068
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 defaultLowOutputLatency = 0.050068
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 defaultHighInputLatency = 0.050068
PTB-DEBUG: PortAudio says: PaAsio_Initialize: drv:0 defaultHighOutputLatency = 0.050068
PTB-INFO: Using specially modified PortAudio engine, based on offical version: PortAudio V19-devel WITH-DIM
Will use ASIO enhanced Portaudio driver DLL. See Psychtoolbox/PsychSound/PortAudioLICENSE.txt
for the exact terms of use for this dll.
Disclaimer: "ASIO is a trademark and software of Steinberg Media Technologies GmbH."
Using "ASIO Interface Technology by Steinberg Media Technologies GmbH"
Found at least one ASIO enabled soundcard in your system. Good, will use that in low-latency mode!
Will test accuracy of scheduled sound onset, i.e. how well the driver manages to
emit sound at exactly the specified "when" deadline. Sound should start in exact
sync with display black-white transition (or at least very close - < 1 msec off).
The remaining bias can be corrected by providing the bias as "latbias" parameter
to this script. Variance of sound onset between trials should be very low, much
smaller than 1 millisecond on a well working system.
Will use auto-selected default output device. This is the system default output
device in "normal" (=reliable but high latency) mode. In low-latency mode its the
device with the lowest inherent latency on your system (as determined by some internal
heuristic). If you are not satisfied with the results you may query the available devices
yourself via a call to devs = PsychPortAudio('GetDevices'); and provide the device index
of a suitable device
suggestedLatencySecs =
0.0150
Choosing a high suggestedLatencySecs setting of 15 msecs to account for shoddy Windows operating system.
For low-latency applications, you may want to tweak this to lower values if your system works better than average timing-wise.
No "latbias" provided. Assuming zero bias. You'll need to determine this via measurement for best results...
PTB-DEBUG: PortAudio says: ASIOCanSampleRate(44100.000000):0
PTB-DEBUG: PortAudio says: ASIOGetSampleRate:44100.000000
PTB-DEBUG: PortAudio says: No Need to change SR
PTB-DEBUG: PortAudio says: Revalidated buffer size constraints are min 2208, max 2208, preferred 2208, granularity 0.
PTB-DEBUG: PortAudio says: PaAsioOpenStream: framesPerHostBuffer :2208
PTB-DEBUG: PortAudio says: asioMessages : 2 , 0
PTB-DEBUG: PortAudio says: asioMessages : 7 , 0
PTB-DEBUG: PortAudio says: ASIO Output type:18PTB-DEBUG: PortAudio says: ASIOSTInt32LSB
PTB-DEBUG: PortAudio says: PaAsio : ASIO InputLatency = 2208 (50 ms), added buffProc:0 (0 ms)
PTB-DEBUG: PortAudio says: PaAsio : ASIO OuputLatency = 2208 (50 ms), added buffProc:0 (0 ms)
PTB-INFO: New audio device -1 with handle 0 opened as PortAudio stream:
PTB-INFO: For 2 channels Playback: Audio subsystem is ASIO, Audio device name is Creative SBZ Series ASIO
PTB-INFO: Real samplerate 44100.000000 Hz. Input latency 50.068027 msecs, Output latency 50.068027 msecs.
prelat =
0
postlat =
0
PTB-INFO: This is Psychtoolbox-3 for Microsoft Windows, under Matlab 64-Bit (Version 3.0.14 - Build date: Jun 6 2017).
PTB-INFO: Support status on this operating system release: Windows version 10.0 supported and tested to some limited degree.
PTB-INFO: Type 'PsychtoolboxVersion' for more detailed version information.
PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under terms of the MIT License, with
PTB-INFO: some restrictions. See file 'License.txt' in the Psychtoolbox root folder for the exact licensing conditions.
PTB-INFO: The detected endline of the vertical blank interval is equal or lower than the startline. This indicates
PTB-INFO: that i couldn't detect the duration of the vertical blank interval and won't be able to correct timestamps
PTB-INFO: for it. This will introduce a very small and constant offset (typically << 1 msec). Read 'help BeampositionQueries'
PTB-INFO: for how to correct this, should you really require that last few microseconds of precision.
PTB-INFO: Btw. this can also mean that your systems beamposition queries are slightly broken. It may help timing precision to
PTB-INFO: enable the beamposition workaround, as explained in 'help ConserveVRAMSettings', section 'kPsychUseBeampositionQueryWorkaround'.
PTB-INFO: OpenGL-Renderer is NVIDIA Corporation :: Quadro M2000/PCIe/SSE2 :: 4.5.0 NVIDIA 376.84
PTB-INFO: VBL startline = 1440 , VBL Endline = 1439
PTB-INFO: Measured monitor refresh interval from beamposition = 16.679879 ms [59.952473 Hz].
PTB-INFO: Beamposition queries are supported, but disabled. Using basic timestamping as fallback:
PTB-INFO: Timestamps returned by Screen('Flip') will be therefore less robust and accurate.
PTB-INFO: Measured monitor refresh interval from VBLsync = 16.682553 ms [59.942863 Hz]. (50 valid samples taken, stddev=0.035177 ms.)
PTB-INFO: Reported monitor refresh interval from operating system = 16.949153 ms [59.000000 Hz].
PTB-INFO: Small deviations between reported values are normal and no reason to worry.
PTB-INFO: ==============================================================================================================================
PTB-INFO: WINDOWS DWM DESKTOP COMPOSITOR IS ACTIVE. On this Windows-10 or later system, Psychtoolbox can no longer reliably detect if
PTB-INFO: this will cause trouble for timing and integrity of visual stimuli or not. You might be just fine, or you could be in trouble.
PTB-INFO: Use external measurement equipment and independent procedures to verify reliability of timing if you care about proper timing.
PTB-INFO: ==============================================================================================================================
Waiting 3 video refresh cycles before white-flash.
Predicted Latency: 50.068027 msecs.
Flip delay = 0.042584 secs. Flipend vs. VBL 0.000049
Delay start vs. played: 0.000945 secs, offset 0.050068
Buffersize 2208, xruns = 0, playpos = 0.050068 secs.
Screen expects visual onset at 456552.288878 secs.
PortAudio expects audio onset at 456552.306021 secs.
Expected audio-visual delay is 17.143514 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Flip delay = 0.042477 secs. Flipend vs. VBL 0.000045
Delay start vs. played: 0.008212 secs, offset 0.050068
Buffersize 2208, xruns = 0, playpos = 0.050068 secs.
Screen expects visual onset at 456553.250924 secs.
PortAudio expects audio onset at 456553.307321 secs.
Expected audio-visual delay is 56.396833 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Flip delay = 0.042530 secs. Flipend vs. VBL 0.000045
Delay start vs. played: 0.008170 secs, offset 0.050068
Buffersize 2208, xruns = 0, playpos = 0.050068 secs.
Screen expects visual onset at 456554.251806 secs.
PortAudio expects audio onset at 456554.308816 secs.
Expected audio-visual delay is 57.009282 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Flip delay = 0.042549 secs. Flipend vs. VBL 0.000047
Delay start vs. played: 0.008246 secs, offset 0.050068
Buffersize 2208, xruns = 0, playpos = 0.050068 secs.
Screen expects visual onset at 456555.253241 secs.
PortAudio expects audio onset at 456555.310049 secs.
Expected audio-visual delay is 56.808383 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Flip delay = 0.042655 secs. Flipend vs. VBL 0.000053
Delay start vs. played: 0.008094 secs, offset 0.050068
Buffersize 2208, xruns = 0, playpos = 0.050068 secs.
Screen expects visual onset at 456556.255134 secs.
PortAudio expects audio onset at 456556.311579 secs.
Expected audio-visual delay is 56.444132 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Flip delay = 0.042581 secs. Flipend vs. VBL 0.000046
Delay start vs. played: 0.007662 secs, offset 0.050068
Buffersize 2208, xruns = 0, playpos = 0.050068 secs.
Screen expects visual onset at 456557.256442 secs.
PortAudio expects audio onset at 456557.312783 secs.
Expected audio-visual delay is 56.341244 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Flip delay = 0.042533 secs. Flipend vs. VBL 0.000264
Delay start vs. played: 0.007933 secs, offset 0.050068
Buffersize 2208, xruns = 0, playpos = 0.050068 secs.
Screen expects visual onset at 456558.257576 secs.
PortAudio expects audio onset at 456558.314278 secs.
Expected audio-visual delay is 56.702082 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Flip delay = 0.042549 secs. Flipend vs. VBL 0.000052
Delay start vs. played: 0.008197 secs, offset 0.050068
Buffersize 2208, xruns = 0, playpos = 0.050068 secs.
Screen expects visual onset at 456559.259094 secs.
PortAudio expects audio onset at 456559.315542 secs.
Expected audio-visual delay is 56.448520 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Flip delay = 0.042887 secs. Flipend vs. VBL 0.000047
Delay start vs. played: 0.007789 secs, offset 0.050068
Buffersize 2208, xruns = 0, playpos = 0.050068 secs.
Screen expects visual onset at 456560.260592 secs.
PortAudio expects audio onset at 456560.317121 secs.
Expected audio-visual delay is 56.529465 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Predicted Latency: 50.068027 msecs.
Flip delay = 0.042486 secs. Flipend vs. VBL 0.000046
Delay start vs. played: 0.008185 secs, offset 0.050068
Buffersize 2208, xruns = 0, playpos = 0.050068 secs.
Screen expects visual onset at 456561.261553 secs.
PortAudio expects audio onset at 456561.318400 secs.
Expected audio-visual delay is 56.846905 msecs.
>>
Thank you very much for your support in advance.
Masayuki