[PYTHON] [Pyxel] Solution for "failed to initialize SDL Audio in'Audio'"

Install pyxel and run the sample program for the time being ...

pyxel error: failed to initialize SDL Audio in 'Audio'

A pyxel error has occurred. I've solved it safely, so I'll write a solution for those who are having trouble with the same error.

Solution

I solved it by sticking earphones in my desktop PC. It seems that the above error occurred because there was no audio output device.

My desktop PC had no speakers connected, and I used to stab my earphones only when listening to music, so when I got this error, no audio output device was connected ... Even if you don't listen to BGM, it seems that the audio output device needs to be connected when you start the game made with pyxel.

Recommended Posts

[Pyxel] Solution for "failed to initialize SDL Audio in'Audio'"
Solution for errors when deploying to Heroku