I am trying to play some 40 second commentary when a certain object is clicked, but each time I click it, the windows error sound plays.
import winsound
winsound.PlaySound('PED.wav', winsound.SND_FILENAME)
I have a shorter file which works so it must be something to do with the length of the file. It is also in the same folder as my python program.
Another solution said that it works if you put you put the .wav file in the python directory but I'm not sure which folder to put it in.
Thanks.