i know this question has been answered, but the answer didn't work for me. Python winsound, ASYNC flag not working?
I'm trying to play a sound file using winsound asynchronously, but if I use
winsound.PlaySound("sound.wav",winsound.SND_FILENAME|winsound.SND_ASYNC)
It won't play the sound, but if I use
winsound.PlaySound("sound.wav",winsound.SND_FILENAME)
It will, but i need it to be asynchronously so i can stop the audio if needed.
Is there something i'm doing wrong here?