pygame   documentation
||  Home  ||  Help Contents  ||
 
|| pygame || cdrom || constants || display || draw || event ||
|| font || image || joystick || key || mixer || mixer_music ||
|| mouse || movie || sndarray || surfarray || time || transform ||
 
|| CD || Channel || Clock || Font || Joystick || Movie ||
|| Rect || Sound || Surface ||
 
|| cursors || sprite ||

Channel

Channel objects represent a single channel of sound. Each channel can only playback one Sound object at a time. If your application only requires simply sound playback, you will usually not need to bother with the Channel objects, they exist for finer playback control.
 
Sound objects can be retrieved from the pygame.mixer module with functions like pygame.mixer.Channel() and pygame.mixer.find_channel(). Also, each time you call Sound.play() a Channel object will be returned, representing the channel that sound is playing on.
fadeout - fade out the channel
get_busy - query state of the channel
get_volume - query the volume for the
pause - temporarily stop the channel
play - play a sound on this channel
set_volume - set volume for channel
stop - stop playing on the channel
unpause - restart a paused channel

fadeout
Channel.fadeout(millisec) -> None
 
get_busy
Channel.get_busy() -> bool
 
get_volume
Channel.get_volume() -> val
 
pause
Channel.pause() -> None

 
play
Channel.play(Sound, [loops, [maxtime]]) -> None
 
set_volume
Channel.set_volume(val, [stereoval]) -> None
 
stop
Channel.stop() -> None
 
unpause
Channel.unpause() -> None