I've been trying to use PsychPortAudio a bit, and checking timing (with windows XP). I sent out a TTL pulse via a I/O card and then call PsychPortAudio to play a sound, and send both signals into an oscilloscope to check timing. When I do it with the InitializePsychSound set to needing low latency, the sound itself starts repeating in a weird way and basically crashes matlab. If I don't use the flag to use low latency, I get about a 500 ms latency between the TTL pulse and the sound, which a pretty substantial variance (~50 ms). When I use matlab's built-in sound function, that latency goes down to about 50 ms with less than 10 ms variance.
So, looking at InitializePsychSound, I see that better drivers or a better sound card can fix this. Any particular suggestions on a cheap solution? I really don't need anything that special, latencies on the order of Windows built-in sound function would be OK, although I'd like to do better.
Thanks for any help!
So, looking at InitializePsychSound, I see that better drivers or a better sound card can fix this. Any particular suggestions on a cheap solution? I really don't need anything that special, latencies on the order of Windows built-in sound function would be OK, although I'd like to do better.
Thanks for any help!