comparison engine/python/fife/extensions/soundmanager.py @ 495:ae9f5383f5b1

Added a new log module called Script. This should be used by the python modules. Did some code cleanup and comment cleanup. Added some more visible log modules to the shooter demo for fun.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 11 May 2010 21:30:55 +0000
parents e241d7553496
children 5ff83f209333
comparison
equal deleted inserted replaced
494:e241d7553496 495:ae9f5383f5b1
19 # License along with this library; if not, write to the 19 # License along with this library; if not, write to the
20 # Free Software Foundation, Inc., 20 # Free Software Foundation, Inc.,
21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 # #################################################################### 22 # ####################################################################
23 23
24 from fife import fife
25
26 import fife.extensions.fife_timer as fife_timer
27 from fife.extensions.pychan.tools import callbackWithArguments as cbwa
28
29 """ 24 """
30 Sound Manager 25 Sound Manager
31 ================================== 26 ==================================
32 27
33 This is a simple implementation of a sound manager that was originaly 28 This is a simple implementation of a sound manager that was originaly
43 emitter = soundmanager.createSoundEmitter("path/filename.ogg") 38 emitter = soundmanager.createSoundEmitter("path/filename.ogg")
44 emitter.gain = 128 39 emitter.gain = 128
45 emitter.play() 40 emitter.play()
46 41
47 """ 42 """
43
44 from fife import fife
45
46 import fife.extensions.fife_timer as fife_timer
47 from fife.extensions.pychan.tools import callbackWithArguments as cbwa
48 48
49 class SoundEmitter(object): 49 class SoundEmitter(object):
50 """ 50 """
51 Wraps the L{fife.SoundEmitter} class. 51 Wraps the L{fife.SoundEmitter} class.
52 52