Audio stimuli being cut short in trials

Thanks; I tried that before and it threw an error, but this time it seems to have worked. Doesn’t solve the problem though. Even with pygame the audio gets cut.