Package pyjsdl :: Module mixer :: Class Channel

Class Channel

object --+
         |
        Channel

pyjsdl.mixer.Channel

Instance Methods
 
__init__(self, id)
x.__init__(...) initializes x; see help(type(x)) for signature
 
play(self, sound, loops=0, maxtime=0, fade_ms=0)
Play sound on channel. Argument sound to play, loops is repeat number or -1 for continuous, maxtime is maximum play time, and fade_ms is fade-in time.
 
run(self)
 
stop(self)
Stop sound on channel.
 
pause(self)
Pause sound on channel.
 
unpause(self)
Unpause sound on channel.
 
fadeout(self, time)
Stop sound after fade out time.
 
set_volume(self, volume)
Set channel volume of sound playing.
 
get_volume(self)
Get channel volume for current sound.
 
get_busy(self)
Check if channel is processing sound.
 
get_sound(self)
Get sound open by channel.
 
queue(self, sound)
Queue sound to play after current sound ends.
 
get_queue(self)
Return queue sound.
 
set_endevent(self, eventType=None)
Set endevent for sound channel. Argument eventType is event type (eg. USEREVENT+num). Without an argument resets endevent to NOEVENT type.
 
get_endevent(self)
Get endevent type for sound 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, id)
(Constructor)

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