pygame   documentation
||  Home  ||  Help Contents  ||
 
|| pygame || cdrom || constants || cursor || display || draw ||
|| event || font || image || joystick || key || mixer ||
|| mixer_music || mouse || movie || sndarray || surfarray || time ||
|| transform ||
 
|| CD || Channel || Clock || Font || Joystick || Movie ||
|| Overlay || Rect || Sound || Surface ||
 
|| color || 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_endevent - get the endevent for a channel
get_queue - get the currently queued sound object
get_sound - get the currently playing sound object
get_volume - query the volume for the
pause - temporarily stop the channel
play - play a sound on this channel
queue - queue a sound on this channel
set_endevent - set an endevent for a 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_endevent
Channel.get_endevent() -> event_type
 
get_queue
Channel.get_queue() -> Sound
 
get_sound
Channel.get_sound() -> Sound
 
get_volume
Channel.get_volume() -> val
 
pause
Channel.pause() -> None

 
play
Channel.play(Sound, [loops, [maxtime]]) -> None
 
queue
Channel.queue(Sound) -> None

 
set_endevent
Channel.set_endevent([event_type]) -> None

 
set_volume
Channel.set_volume(val, [stereoval]) -> None
 
stop
Channel.stop() -> None
 
unpause
Channel.unpause() -> None