No sound output in patient session.
Opened this issue · 0 comments
lwhite1 commented
No sound was created in a patient session.
The error was reported by STM. The psychopy code is providing a filename of 'type.wav' (Its name), which can't be resolved when attached to the path. The filename is provided in the calibration portion of psychopy's EyelinkCoreGraphicsPsychoPy module.
The psychopy code where the error is thrown is shown below (psychopy/sound/_base.py):
# try finding a file
self.fileName = None
for filePath in ['', mediaLocation]:
p = path.join(filePath, value)
if path.isfile(p):
self.fileName = p
break
elif path.isfile(p + '.wav'):
self.fileName = p = p + '.wav'
break
if self.fileName is None:
msg = "setSound: could not find a sound file named "
raise ValueError(msg + value)
The file that can't be found is apparently " C:\\Windows\\Media\\type.wav" so we should check to see if it exists when Wang is free