Package pyjsdl :: Module mixer :: Class Music

Class Music

object --+
         |
        Music

pyjsdl.mixer.music

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
load(self, sound_file)
Load music file.
 
unload(self)
Unload music file.
 
play(self, loops=0, maxtime=0, fade_ms=0)
Play music. Argument loops is repeat number or -1 for continuous, maxtime is maximum play time, and fade_ms is fade-in time.
 
rewind(self)
Rewind music.
 
stop(self)
Stop music.
 
pause(self)
Pause music.
 
unpause(self)
Unpause music.
 
fadeout(self, time)
Stop music after fade out time.
 
set_volume(self, volume)
Set music volume. Argument volume of value 0.0 to 1.0.
 
get_volume(self)
Get volume for current music.
 
get_busy(self)
Check if music playing.
 
queue(self, sound_file)
Queue sound to play after current sound ends.
 
set_endevent(self, eventType=None)
Set endevent for music channel. Argument eventType is event type (eg. USEREVENT+num). Without an argument resets endevent to NOEVENT type.
 
get_endevent(self)
Get endevent type for music channel.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)