psychopy.org | Reference | Downloads | Github

Sound not playing after the second trial

OS (e.g. Win10): MacOS Mojave 10.14.1
PsychoPy version (e.g. 1.84.x): 3.0.0b11
Standard Standalone? (y/n) Yes

Hi,

I am trying to play a different file for each trial. After the second or third trial, the audio stops playing but the experiment keeps going. It happens with the two blocks there are in my experiment (practice and experimental).
The image attached displays the error message that pops up when the experiment is closed.
I know there is a post similar to this one but it is for Windows.
If anyone could help me, I would greatly appreciate it. If more information is needed, please ask for anything it is.

Thank you!

Hi,
this solution might help in your case, too. Between Windows and MacOS, only the file path should differ, so

  1. Open “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/sound/backend_sounddevice.py” with administrator rights
  2. Search for self.sounds.remove(thisSound) and remove .sounds
  3. Save the file
  4. Restart PsychoPy

Hello @TorgeMS,

It worked. Thank you very much!