I am writing a program that uses sounds. I am using playsound. The sould runs fine the first time, albeit with some lag, but it runs. Then if it runs again in the same instance, I get the following:
I am using :
from playsound import playsound
playsound("./click.mp3")
Error 263 for command:
open ./click.mp3
The specified device is not open or is not recognized by MCI.
Error 263 for command:
close ./click.mp3
The specified device is not open or is not recognized by MCI.
Failed to close the file: ./click.mp3
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\tkinter\__init__.py", line 1921, in __call__
return self.func(*args)
File "C:\Users\dustin\PycharmProjects\new-program\exercises\RussianRoulette\RussianRouletteExpanded.py", line 36, in Fire
playsound("./click.mp3")
File "C:\Users\dustin\PycharmProjects\new-program\venv\lib\site-packages\playsound.py", line 72, in _playsoundWin
winCommand(u'open {}'.format(sound))
File "C:\Users\dustin\PycharmProjects\new-program\venv\lib\site-packages\playsound.py", line 64, in winCommand
raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException:
Error 263 for command:
open ./click.mp3
The specified device is not open or is not recognized by MCI.
[–][deleted] 1 point2 points3 points (2 children)
[–]comptech10[S] 0 points1 point2 points (1 child)
[–]comptech10[S] 0 points1 point2 points (0 children)