![]() Here, using a previously tested script I replaced the pyo backend with sounddevice and got the following error messages when trying to play a dichotic (2-channel) audio stimulus: From cffi callback :įile "C:\Program Files (x86)\PsychoPy2\lib\site-packages\sounddevice\sounddevice.py", line 1447, in callback_wrapper Using Windows 7 I was actually able to get PsychoPy to run using the new sounddevice library, however here I ran into a different issue which seems to be related to the new way in which the audio stream is initiated. ![]() Traceback (most recent call last):įile "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound/_init_.py", line 72, in įile "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound/backend_sounddevice.py", line 12, in įile "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/sounddevice/_init_.py", line 1, in įile "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/sounddevice/sounddevice.py", line 227, in įile "cffi/cparser.pyc", line 299, in parseįile "cffi/cparser.pyc", line 304, in _internal_parseįile "cffi/cparser.pyc", line 260, in _parseįile "cffi/cparser.pyc", line 40, in _get_parserįile "pycparser/c_parser.pyc", line 116, in _init_įile "pycparser/ply/yacc.pyc", line 3293, in yaccįile "pycparser/ply/yacc.pyc", line 2938, in validate_allįile "pycparser/ply/yacc.pyc", line 2982, in validate_modulesįile "inspect.pyc", line 690, in getsourcelinesįile "inspect.pyc", line 538, in findsource I can now use the sounddevice library without problems outside of Psychopy (using Python3.6 via Anaconda). ĭo I need to download/install any additional libraries/modules to run this PsychoPy version? Manually installing sounddevice via pip didn’t help with the PsychoPy issue. ![]() On MacOSX I’m running into major problems that seem to be connected to the sounddevice library - see the error message below triggered by from psychopy import sound. I’m testing it both on a Windows 7 machine and various Mac OSX machines (running 10.11 and 10.12) using their respective standalone versions. ![]() I’ve started testing the new pre-lease version hoping the newly implemented sounddevice backend will help deliver audio stimuli with shorter latencies. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |