| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
SoundManager
A simple sound manager class.
This class manages and plays all the sounds of the game. It creates SoundEmitters and ensures that there is only one fife.SoundEmitter per unique sound.
|
|||
|
|||
| SoundEmitter |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
rolloff = property(_getRolloff, _setRolloff)
|
|||
listenerposition = property(_getListenerPosition, _setListener
|
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Returns a valid SoundEmitter instance.
|
Plays a sound clip. This function does not use the fife.SoundEmitter "looping" property to loop a sound. Instead it registers a new timer and uses the duration of the clip as the timer length. If the SoundEmitter is invalid (no fifeemitter) then it attempts to load it before playing it.
Note: This will stop any clips that use the same fife.SoundEmitter. You cannot play the same sound more than once at a time unless you create the SoundEmitter with the forceUnique paramater set to True. |
Stops playing the sound clip. Note that this will stop all clips that use the same FIFE emitter.
|
Releases all instances of fife.SoundEmitter. Note: This does not free the resources from the FIFE sound clip pool. |
|
|||
listenerposition
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Sat Feb 11 00:00:29 2012 | http://epydoc.sourceforge.net |