Closed Bertik23 closed 4 years ago
Hmm, hard to say. I suppose I would try the winsound module directly to see what happens.
https://docs.python.org/3/library/winsound.html
winsound.PlaySound(soundfile, flags)
Does it have a runtime error as well? If so the audio device is borked, else the flags field might not be correct. I've added a log line in my copy to print it out. Here's how to do it externally, printing the flag constants might shed some light:
print(boombox._flags, winsound.SND_FILENAME)
If the audio device works, trying PyAudio might yield some clues as well. It prints a lot of debug information (that boombox silences) if you use it on its own
Well, that is wierd. I haven't done anything and now it works.
Hi I have made a program called Drink! on Linux and I assumed it would work on Windows as well, but when I run it on Windows I can't hear anything. So I ran
python -m boombox
to test it and got this result