Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hey, just wondering if you are planning on adding audio capabilities any time soon? if not do you know if there’s any way I could add them to it? Thanks!

(+1)

Hi, what level of audio functionality would you be after? I have a simple and experimental API that supports playing audio files. I could look into merging it into the normal build if that would help? Alternatively, I'm looking to release a new major version of Pyrite early 2022, which will support audio out of the box.

There's also theoretically nothing stopping you from importing an existing audio library, place it in the executable directory and import it.

Final option could even be to just use os.system to call an external program for audio playback. ie.

# apt install mpg123 (if on linux. Will need to look for another program for windows.)
import os
file = "file.mp3"
os.system("mpg123 " + file)

Above from: https://pythonbasics.org/python-play-sound/

all I’m really in need of is playing a few audio files as sound effects so I think taking something like the playsound module and adding it to my script will be enough. I didn’t even think of importing another audio library. Thanks!