Mercurial > fife-parpg
comparison engine/python/fife/extensions/soundmanager.py @ 656:99e3ef63495b
* The RPG and Shooter demos now clear the screen when in OpenGL mode
* Small update to the soundmanager to stop the stack overflow problem.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 22 Oct 2010 16:01:57 +0000 |
parents | 2851e232a113 |
children |
comparison
equal
deleted
inserted
replaced
655:cdebc30c9c4a | 656:99e3ef63495b |
---|---|
281 timer = None | 281 timer = None |
282 | 282 |
283 if clip.looping: | 283 if clip.looping: |
284 repeat = 0 | 284 repeat = 0 |
285 def real_callback(clip): | 285 def real_callback(clip): |
286 clip.callback() | |
287 clip.fifeemitter.stop() | 286 clip.fifeemitter.stop() |
288 clip.fifeemitter.setGain(float(clip.gain)/255.0) | 287 clip.fifeemitter.setGain(float(clip.gain)/255.0) |
289 if self.listenerposition and clip.position: | 288 if self.listenerposition and clip.position: |
290 # Use 1 as z coordinate, no need to specify it | 289 # Use 1 as z coordinate, no need to specify it |
291 clip.fifeemitter.setPosition(clip.position[0], clip.position[1], 1) | 290 clip.fifeemitter.setPosition(clip.position[0], clip.position[1], 1) |