The issue is that I have 3 different sound files that it needs to randomly pick from, whilst they do the experiment. They will need to hear each of these pieces of background music once.
I can get it to play one, but I am not quite sure how to code it to shuffle and play the others.
thisExp.addData('song',background_sound)
if trials.thisN == 143:
background_sound.stop()
This has worked (for now). However I found that I was having the matrix error and the sound channel error, even though all of the songs are in the same Hz and in stereo (as checked and repeatedly re-saved in Audacity), which has led to me having to use PyGame to get the audio to work properly.