-----------------------------------------------------
Gary Lupyan - lup...@wisc.edu
Assistant Professor of Psychology
University of Wisconsin, Madison
http://sapir.psych.wisc.edu
-----------------------------------------------------
I guess the next step will be to create a Sound class based on pyo, that
can eventually replace the pygame sounds. Would definitely also need a
way to control buffer size (and it will be interesting the trade-off
works with low-latency versus dropped frames). I wonder whether the use
of the 'server' arrangement is a way to get around the python GIL, so
that all the sound handling can run on a separate CPU core(?).
For on-the-fly sounds, PsychoPy currently premakes a numpy array and
passes that to the handling lib - it doesn't create each buffer as
needed. Can pyo receive an array instead of a file? That shouldn't have
any overhead once loaded.
The creation/destruction of the sound 'server' could probably be handled
automatically using a __del__ method for the sounds. Would need to test
how many sound servers are allowed simultaneously.
will be great to see how this develops!
Jon
--
Dr. Jonathan Peirce
Nottingham Visual Neuroscience
I noticed that when trying to play a mono file it only plays it in one
channel. If I convert it to stereo (by just duplicating the info in
both channels) it works fine. The default behavior in windows at
least is to send the sound from mono files to both channels. Is there
a way to get pyo to do that?
Thanks!
-----------------------------------------------------
Gary Lupyan - lup...@wisc.edu
Assistant Professor of Psychology
University of Wisconsin, Madison
http://sapir.psych.wisc.edu
-----------------------------------------------------
On Tue, Sep 6, 2011 at 3:30 PM, Scott Novich <boomtec...@gmail.com> wrote:
> s.setOutputDevice(8)