[ StandAlone Psychopy, Builder and Coder Views. Windows 7 ]
We’ve been coding some new experiments and we found a hardware-related issue which we solved with a dedicated sound card.
The problem is, when running the experiment, PsychoPy still uses the wrong audio device to play the desired sound.
We’ve been using Pyo’s functions to get the available audio devices, and then setting it to the proper device.
So for instance, in a code component set at the start of the experiment where we get the devices:
and set them to the correct one (for example, number 6):
We tested printing to console getting the current device being used for audio display and we get the original device (for example, number 1), like PsychoPy is simply ignoring the previously given order.
Now, I’m aware the PsychoPy has a “Preferences” menu where you can set the desired audio library. we selected Pyo instead of PyGame but the device used is still the same.
Now, we are kind of forced to use the default device, so we are trying to control the buffer size to somehow deal with the issue. But we can’t find an option for that.
Also, is there any way to print to console the full data of the Sound object being used by PsychoPy to play a given audio file? I mean, like kHz, buffer size, etc. Because the Sound data provided at the documentation doesn’t mention such a feature.
Sorry for the long post, hopefully I’ve detailed the full issue.
Any help would be much appreciated.