1

I'm having trouble with some simple winsound code:

import winsound

winsound.PlaySound("song.wav", winsound.SND_FILENAME)

The problem is that whenever I try to play a .wav file, all I get is a Windows error sound and then the program continues onward.

I have a feeling that it may be because the file is too large seeing as I have done it before with shorter .wav files. Is there a size/length limit? Does anyone know the boundaries? If so, are there any ways of getting around this?

Tomerikoo
  • 18,379
  • 16
  • 47
  • 61

1 Answers1

0

I used to have this problem also, but when I put the audio file in the Python directory, it worked. Try that. :)

Max
  • 1