I'm learning Python by making small games, with Turtle. I want a background music playing. It's the only sound that doesn't work. When I add this sound, other sounds don't work also !
Here is what I get :
winsound.PlaySound("background.wav", winsound.SND_ASYNC)
RuntimeError: Failed to play sound
My code:
while True:
winsound.PlaySound("background.wav", winsound.SND_ASYNC)
wn.update()
# Move the ball
ball.setx(ball.xcor() + ball.dx)
ball.sety(ball.ycor() + ball.dy)