Music handling class.
This class stores and plays music. Music is very similar to sound effects, but only one music file can be played at a time, and it is more efficient for larger files than sge.Sound.
What music formats are supported depends on the implementation of SGE, but Ogg Vorbis is generally a good choice. See the implementation-specific information for a full list of supported formats.
You should avoid the temptation to use MP3 files; MP3 is a patent- encumbered format, so many systems do not support it and royalties to the patent holders may be required for commercial use. There are many programs which can convert your MP3 files to the free Ogg Vorbis format.
Attributes:
Read-Only Attributes:
Create a new music object.
Arguments:
All other arguments set the respective initial attributes of the music. See the documentation for Music for more information.
Play the music.
Arguments:
See the documentation for sge.Sound.play for more information.
Queue the music for playback.
This will cause the music to be added to a list of music to play in order, after the previous music has finished playing.
See the documentation for Music.play for more information.
Stop the currently playing music.
See the documentation for sge.Sound.stop for more information.
Pause playback of the currently playing music.
Resume playback of the currently playing music if paused.
Clear the music queue.