Hello,
We get sound latency of 200 ms on the standalonve version of PsychoPy (1.83.04) on Windows 7 in our lab:
microphone latency 0.2000 s Warning: "Microsoft Sound Mapper - Input" latency > 10ms
We have measured it also by connecting the sound output to the sound input of another computer. The startle wav file is consistently played 200 ms after the parrallel port trigger.
When using Neurobs Presentation, the trigger is set perfectly at the same time as the sound. We have installed the latest sound drivers for our dedicated sound card, but it didn't change anything.
I'm using the following code:
startle_sound = sound.Sound("startle50ms.wav")
if is_pport:
port = parallel.setPortAddress(address = pport_address)
def sendTrigger(code):
'''sending trigger to parallel port'''
port.setData(code)
core.wait(0.01) # duration of trigger: 100ms
parallel.setData(0) # disable trigger
startle_sound.play()
if is_pport: sendTrigger(code=st_port_code)
Could you give us some ideas, how to correct the latency issues? Is there a way to test sound latency under Windows, instead of running the benchmarks, which take quite some time...?
I have the same issue on my laptop (under Win 7), although the benchmarks don't show any latency issues under linux.
btw. I use setPortAddress, because I get a message to use it, when
trying to set port = parallel.ParallelPort(addresse = pport_address); I
had a look at the parallel.py code but didn't really figure out the
reason, why ParallelPort doesn't work. Should I try to install other
drivers?
Best wishes
Piotr