Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
API docs for arcade.sound.play_sound says its only tested on Py2.7 #180
I noticed that the api docs for arcade.sound.play_sound says its only tested on Python 2.7, but Arcade itself doesnt support Python 2.7. Maybe the text can be updated in case it actually is tested on Python 3?
I thought I would share some interesting behavior with the Arcade Sound Module running the sprite_bullets example on my Mac (MacOS 10.12.6 Sierra, python 3.6.2, and arcade 1.3.0)
The sound works when I run the example from the command line
The sound also works when I run the program from the example directory
However, when I copy the example and associated image and sound files to my Users folder, an OSError is generated:
Using the Wing IDE debugger, it appears that this line doesn't set the url variable correctly. Even though the pathname in the sound variable is correct, the URLWithString method returns None.
This may be a solution for playing sound files on the Mac. Changing the URL method seems to work for local sound files. Tested on MacOS 10.12 Sierra and 10.13 High Sierra.