PsychoPy, Pyo and PulseAudio24 Jan 2016
Today, while hacking on pyFlies I
run into trouble with the code generated for the
PsychoPy is using
Pyo to generate sound. The problem
Pyo do not support
JACK. This might be a good choice since
better suited for low latency sound processing, but today most linux distro use
PulseAudio which is better suited for general desktops.
In order to use
PsychoPy, first thing to do is to start
there are nice GUI apps to do that easily, e.g.
JACK is runnning.
Now, we must instruct
pyo called from
PsychoPy to use
audio parameter in
Server call of pyo lib which could be used to
JACK as the backend, this would require changing source code of
PsychoPy. There is luckily a non-obtrusive way to achieve the same effect.
Just specify environment variable:
pyo lib will use
JACK by default and the
PsychoPy sound will work.