Sound handling class.
This class stores and plays sound effects. Note that this is inefficient for large music files; for those, use sge.Music instead.
What sound formats are supported depends on the implementation of the SGE, but sound formats that are generally a good choice are Ogg Vorbis and uncompressed WAV. See the implementation-specific information for a full list of supported formats.
The volume of the sound in percent from 0 to 100 (0 for no sound, 100 for max sound).
The maximum number of instances of this sound playing permitted. If a sound is played while this number of the instances of the same sound are already playing, one of the already playing sounds will be stopped before playing the new instance. Set to None or 0 for no limit.
The file name of the sound given when it was created. (Read-only)
The length of the sound in milliseconds. (Read-only)
The number of instances of this sound playing. (Read-only)
Constructor method.
Arguments:
All other arguments set the respective initial attributes of the sound. See the documentation for sge.Sound for more information.
Play the sound.
Arguments:
Stop the sound.
Arguments:
Pause playback of the sound.
Resume playback of the sound if paused.
Stop playback of all sounds.