|
__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. |
|
|
|
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,
volume2=None)
Set channel volume of sound playing.
Argument volume of value 0.0 to 1.0, setting for both speakers when single, stereo l/r speakers with second value. |
|
|
|
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__
|