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 ||

Sound

Sound objects represent actual sound data. Sound objects are created from the function pygame.mixer.Sound(). Sound objects can be playing on multiple channels simultaneously. Calling functions like Sound.stop() from the sound objects will effect all channels playing that Sound object.
 
All sound objects have the same frequency and format as the pygame.mixer module's initialization.
fadeout - fadeout all channels playing this sound
get_length - get the length of the Sound in seconds.
get_num_channels - number of channels with sound
get_volume - query volume for sound
play - play sound
set_volume - change volume for sound
stop - stop all channels playing this sound

fadeout
Sound.fadeout(millisec) -> None
 
get_length
Sound.get_length() -> float
 
get_num_channels
Sound.get_num_channels() -> int
 
get_volume
Sound.get_volume() -> val
 
play
Sound.play([loops, [maxtime]]) -> Channel
 
set_volume
Sound.set_volume(val) -> None
 
stop
Sound.stop() -> None