OS : Windows 10 v.1909 (compolation18363.836)
PsychoPy version: 2020.1.3
Standard Standalone?: yes
What are you trying to achieve?:
I am trying to play a sound based on a “if” statement placed on code.
What did you try to make it work?:
It works, but it does not play the entire sound, but only 10 seconds.
This is a long experiment with six parts:
- DASS-21 Scale
- PF&C Task
- Playing the sound
- PF&C Task again
- OASIS images
The stranger thing is that I can play all the sound (it is a 10 min music) if I point directly to the wave file in the sound component. It works perfectly. But I want to play a sound based on information placed in the beginning of the experiment, it stops playing within 10 seconds. I have also tried to use continueRoutine = True inside the if statement, but it made no difference.
Thanks a lot!
PS: Experiment will crash without a “Result.png” file after the PF&C Task, but it works if the file already exists in the folder of the experiment file. It probably will crash also without the wave files, that I cannot upload here (too large also).