2021年1月25日星期一

How do I make pygames play audio from a folder?

Hello I'm new to programming and I wanted to make a song player.

import os  from pygame import mixer  Path = input("please provide path to folder: ")  os.chdir(Path)  mixer.init()  mixer.music.lead(Path)  

This is my code so far.

https://stackoverflow.com/questions/65895752/how-do-i-make-pygames-play-audio-from-a-folder January 26, 2021 at 12:05PM

没有评论:

发表评论