I was programming a game using Python and a sound effect needed to be played, so I used the playsound module:
from playsound import playsound
playsound("Typing.wav", False)
And when I attempted the run the program this error was returned:
Error 263 for command:
open Typing.wav
The specified device is not open or is not recognized by MCI.
I did some research and some sources indicated that it was an issue with my sound drivers. I updated & reinstalled it, but the issue persists. Is there any way to solve this?
playsound
source code, it looks like that error is propagated up from themciwave.dll
thatplaysound
invokes on Windows to access the sound card/drivers. Looking through Micosoft's documentation it appears that the error's name isMCIERR_INVALID_DEVICE_NAME
. Perhaps that helps one of us figure out the root cause of the issue? – Orrery