PsychoPy version (2021.2.3):
**Standard Standalone? y
What are you trying to achieve?: play sound file in main trials. It all works in the practice block but not in the main block. The settings are exactly the same, but I have made sure variable names are different in the trial block and the main block.
What did you try to make it work?:
change the audio preferences to ptb but then the sound file is compressed (playing too fast), so I am using pygame, which works well for the practice trials.
I have also tried to type in the volume again (1) but that didn’t help.
Error message and screen shots attached.
thanks a lot for helping me!
File “C:\Users\yf903040\Documents\CSFT psychopy\CSFT_2508txtfinal2_lastrun.py”, line 753, in
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\sound\backend_pygame.py”, line 268, in setVolume
AttributeError: ‘NoneType’ object has no attribute ‘set_volume’