The above sample code runs without error, but hangs without playback, and doesn’t exit. PYO then worked fine for about half an hour - I was able to run the following sample code: import sysįrom psychopy import locale_setup, core, data, event, logging, sound, guiį = sound.Sound('1025Hz pure sine_100ms.wav', secs=0.15)įrustratingly, things have now stopped working again - without me making any changes! I then went into sound/backend_pyo.py in the PsychoPy code and updated the calls which instantiate Server to add this parameter. This crashed until I set winhost=‘asio’, at which point the sound played fine. S=Server(sr=44100, nchnls=2, buffersize=256, duplex=1, audio='portaudio', jackname='pyo', ichnls=None, winhost='asio')
I then got a minimal example working without PsychoPy: Same errors with this interpreter and latest PYO. The rest of this post uses this Python interpreter. I then installed the latest PYO (pyo_0.8.7_py2.7_setup.exe) and 32-bit Anaconda for Python 2.7. Midi output (Microsoft MIDI Mapper) opened. Portaudio error in Pa_Terminate (pa_deinit): PortAudio not initialized Portaudio error in Pa_CloseStream (pa_deinit): PortAudio not initialized Portaudio error in Pa_OpenStream: Illegal combination of I/O devices Error: Portaudio uses interleaved callback. I tried first of all with the standalone PsychoPy install. It’s a requirement as colleagues are also using PYO on existing equipment, and sound playback (in our detection experiment) is much quieter using PyGame/sounddevice. I need to get PYO to work on a Windows 7 Enterprise Dell Optiplex 7040.