Skip to content

makeMusic

stevepaget edited this page Feb 16, 2016 · 1 revision

Makes a Music object


Syntax:

makeMusic(filename)

Where:

filename is a string representing a sound file. MP3 or OGG files are acceptable. Pygame recommends the use of OGG due to known issues on some systems.

Note: The sound does not play until playMusic is called. Only one music stream can be played at a time.

eg. makeMusic("action.mp3")

Clone this wiki locally