CTor
DTor
Postblit is disabled
Copying this object is disabled.
Fade out the music. The music will be stopped in ms milliseconds.
Returns the current volume
Returns if the music is currently paused
Returns if the music is currently playing
Load the music file (filename). Returns if the loading was successful. If not, an error message is showed which describes what the problem is.
Pause the music playback
Plays the music. loops describe how often the music shall be played. A value of -1 indicated, that the music plays forever, a value of 0 means, that the music plays zero times. delay is the time in ms to fade in. Any previous music will be halted.
Resume the music playback
Rewind the music to the start
Set the position of the currently playing music. The position takes different meanings for different music sources.
Set the volume, max. is 128, min. is 0 If the value is above 128, the max. will be assumed. Returns the previous volume.
Stop/Halt the music playback
Music represents the functionality to load and play music files. * Note: Music is designed to load and play <b>larger</b> music files, e.g. background music If you just want to play short sounds, use Sound. * Supported formats are .wav, .mp3, .vorbis, .ogg, .midi *